🍾 Xarray is now 10 years old! 🎉

xarray.Index.equals

Contents

xarray.Index.equals#

Index.equals(other)[source]#

Compare this index with another index of the same type.

Implementation is optional but required in order to support alignment.

Parameters:

other (Index) – The other Index object to compare with this object.

Returns:

is_equal (bool) – True if the indexes are equal, False otherwise.