# xarray.IndexVariable.to_index

#### IndexVariable.to_index()[[source]](https://github.com/pydata/xarray/blob/v2026.09.0/xarray/core/variable.py#L2981-L2989)

Convert this variable to a pandas.Index
