Dataset.reorder_levels(dim_order=None, **dim_order_kwargs)[source]#

Rearrange index levels using input order.

  • dim_order (dict-like of Hashable to Sequence of int or Hashable, optional) – Mapping from names matching dimensions and values given by lists representing new level orders. Every given dimension must have a multi-index.

  • **dim_order_kwargs (Sequence of int or Hashable, optional) – The keyword arguments form of dim_order. One of dim_order or dim_order_kwargs must be provided.


obj (Dataset) – Another dataset, with this dataset’s data but replaced coordinates.