xarray.Dataset.unstack

Dataset.unstack(dim)

Unstack an existing dimension corresponding to a MultiIndex into multiple new dimensions.

New dimensions will be added at the end.

Parameters:

dim : str

Name of the existing dimension to unstack.

Returns:

unstacked : Dataset

Dataset with unstacked data.

See also

Dataset.stack