DataFrame.sortlevel(level=0, axis=0, ascending=True, inplace=False, sort_remaining=True)
[source]
Sort multilevel index by chosen axis and primary level. Data will be lexicographically sorted by the chosen level followed by the other levels (in order).
Deprecated since version 0.20.0: Use DataFrame.sort_index()
Parameters: |
inplace : boolean, default False Sort the DataFrame without creating a new instance sort_remaining : boolean, default True Sort by the other levels too. |
---|---|
Returns: |
|
See also
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.DataFrame.sortlevel.html