xarray.Variable.to_index

Variable.to_index(self)

Convert this variable to a pandas.Index