pandas.Series.sortlevel
-
Series.sortlevel(level=0, ascending=True, sort_remaining=True)
[source] -
Sort Series with MultiIndex by chosen level. Data will be lexicographically sorted by the chosen level followed by the other levels (in order),
Deprecated since version 0.20.0: Use
Series.sort_index()
Parameters: -
level : int or level name, default None
-
ascending : bool, default True
Returns: -
sorted : Series
See also
-
© 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.23.4/generated/pandas.Series.sortlevel.html