xray.DataArray.to_index

DataArray.to_index()

Convert this variable to a pandas.Index. Only possible for 1D arrays.