🍾 Xarray is now 10 years old! 🎉

xarray.Index.reindex_like

xarray.Index.reindex_like#

Index.reindex_like(other)[source]#

Query the 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 used to query this index.

Returns:

dim_positional_indexers (dict) – A dictionary where keys are dimension names and values are positional indexers.