xarray.IndexVariable.stack#
- IndexVariable.stack(dim=None, **dim_kwargs)[source]#
Stack any number of existing dim into a single new dimension.
New dim will be added at the end, and the order of the data along each new dimension will be in contiguous (C) order.
- Parameters
- Returns
stacked (
Variable
) – Variable with the same attributes but stacked data.
See also