W3cubDocs

/pandas 0.25

pandas.Series.reorder_levels

Series.reorder_levels(self, order) [source]

Rearrange index levels using input order.

May not drop or duplicate levels.

Parameters:
order : list of int representing new level order

(reference level by number or key)

Returns:
type of caller (new object)

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.Series.reorder_levels.html