xarray.Index.unstack

Contents

xarray.Index.unstack#

Index.unstack()[source]#

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) – A 2-length tuple where the 1st item is a dictionary of unstacked Index objects and the 2nd item is a pandas.MultiIndex object used to unstack unindexed coordinate variables or data variables.