xarray.Dataset.unstack¶
-
Dataset.
unstack
(self, dim: Union[Hashable, Iterable[Hashable]] = None) → 'Dataset'¶ Unstack existing dimensions corresponding to MultiIndexes into multiple new dimensions.
New dimensions will be added at the end.
- Parameters
dim (Hashable or iterable of Hashable, optional) – Dimension(s) over which to unstack. By default unstacks all MultiIndexes.
- Returns
unstacked – Dataset with unstacked data.
- Return type
See also