xarray.DataArray.get_index#

DataArray.get_index(key)[source]#

Get an index for a dimension, with fall-back to a default RangeIndex