datatree.DataTree.reset_index#
- DataTree.reset_index(dims_or_levels: collections.abc.Hashable | collections.abc.Sequence[collections.abc.Hashable], *, drop: bool = False) Self [source]#
Reset the specified index(es) or multi-index level(s).
This legacy method is specific to pandas (multi-)indexes and 1-dimensional “dimension” coordinates. See the more generic
drop_indexes()
andset_xindex()
method to respectively drop and set pandas or custom indexes for arbitrary coordinates.- Parameters
- Returns
obj (
Dataset
) – Another dataset, with this dataset’s data but replaced coordinates.
See also
Dataset.set_index
,Dataset.set_xindex
,Dataset.drop_indexes