# xarray.Variable.to_index

#### Variable.to_index()[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/variable.py#L793-L795)

Convert this variable to a pandas.Index
