# xarray.Index.unstack

#### Index.unstack()[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/indexes.py#L157-L171)

Unstack a (multi-)index into multiple (single) indexes.

Implementation is optional but required in order to support unstacking
the coordinates from which this index has been built.

* **Returns:**
  **indexes** ([`tuple`](https://docs.python.org/3/builtins/stdtypes.html#tuple)) – A 2-length tuple where the 1st item is a dictionary of unstacked
  Index objects and the 2nd item is a [`pandas.MultiIndex`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.MultiIndex.html#pandas.MultiIndex)
  object used to unstack unindexed coordinate variables or data
  variables.
