xarray.IndexVariable.unstack#
- IndexVariable.unstack(dim=None, **dim_kwargs)[source]#
Unstack an existing dimension into multiple new dimensions.
New dimensions will be added at the end, and the order of the data along each new dimension will be in contiguous (C) order.
Note that unlike
DataArray.unstack
andDataset.unstack
, this method requires the existing dimension to contain the full product of the new dimensions.- Parameters
- Returns
unstacked (
Variable
) – Variable with the same attributes but unstacked data.
See also