File tree 2 files changed +11
-9
lines changed
2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -4732,8 +4732,9 @@ def sort_index(
4732
4732
and 1 identifies the columns.
4733
4733
level : int or level name or list of ints or list of level names
4734
4734
If not None, sort on values in specified index level(s).
4735
- ascending : bool, default True
4736
- Sort ascending vs. descending.
4735
+ ascending : bool or list of bools, default True
4736
+ Sort ascending vs. descending. When the index is a MultiIndex the
4737
+ sort direction can be controlled for each level individually.
4737
4738
inplace : bool, default False
4738
4739
If True, perform operation in-place.
4739
4740
kind : {'quicksort', 'mergesort', 'heapsort'}, default 'quicksort'
Original file line number Diff line number Diff line change @@ -2950,11 +2950,11 @@ def sort_index(
2950
2950
self ,
2951
2951
axis = 0 ,
2952
2952
level = None ,
2953
- ascending = True ,
2954
- inplace = False ,
2955
- kind = "quicksort" ,
2956
- na_position = "last" ,
2957
- sort_remaining = True ,
2953
+ ascending : bool = True ,
2954
+ inplace : bool = False ,
2955
+ kind : str = "quicksort" ,
2956
+ na_position : str = "last" ,
2957
+ sort_remaining : bool = True ,
2958
2958
ignore_index : bool = False ,
2959
2959
):
2960
2960
"""
@@ -2969,8 +2969,9 @@ def sort_index(
2969
2969
Axis to direct sorting. This can only be 0 for Series.
2970
2970
level : int, optional
2971
2971
If not None, sort on values in specified index level(s).
2972
- ascending : bool, default true
2973
- Sort ascending vs. descending.
2972
+ ascending : bool or list of bools, default True
2973
+ Sort ascending vs. descending. When the index is a MultiIndex the
2974
+ sort direction can be controlled for each level individually.
2974
2975
inplace : bool, default False
2975
2976
If True, perform operation in-place.
2976
2977
kind : {'quicksort', 'mergesort', 'heapsort'}, default 'quicksort'
You can’t perform that action at this time.
0 commit comments