xray.DataArray.as_index

DataArray.as_index

The variable’s data as a pandas.Index. Only possible for 1D arrays.