xarray.Dataset.unstack¶
-
Dataset.
unstack
(dim: Union[Hashable, Iterable[Hashable]] = None, fill_value: Any = <NA>, sparse: bool = False) → xarray.core.dataset.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.
- fill_value (value to be filled. By default, np.nan) –
- sparse (use sparse-array if True) –
Returns: unstacked – Dataset with unstacked data.
Return type: See also