xarray.DataArray.unstack

DataArray.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 : DataArray

Array with unstacked data.

See also

DataArray.stack