xarray.Index.stack#
- classmethod Index.stack(variables, dim)[source]#
Create a new index by stacking coordinate variables into a single new dimension.
Implementation is optional but required in order to support
stack
. Otherwise it will raise an error when trying to pass the Index subclass as argument toDataset.stack()
.