xarray.DataArray.to_index#

DataArray.to_index()[source]#

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