Skip to content

Commit a63013a

Browse files
committed
Mention versionadded in Series.sort_index() doc-string
1 parent 85c2bfa commit a63013a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pandas/core/generic.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,16 +2015,19 @@ def sort_values(self, by, axis=0, ascending=True, inplace=False,
20152015
Sort ascending vs. descending
20162016
inplace : bool, default False
20172017
if True, perform operation in-place
2018+
sort_remaining : bool, default True
2019+
if true and sorting by level and index is multilevel, sort by other
2020+
levels too (in order) after sorting by specified level
2021+
2022+
.. versionadded:: 0.19.0
2023+
20182024
kind : {'quicksort', 'mergesort', 'heapsort'}, default 'quicksort'
20192025
Choice of sorting algorithm. See also ndarray.np.sort for more
20202026
information. `mergesort` is the only stable algorithm. For
20212027
DataFrames, this option is only applied when sorting on a single
20222028
column or label.
20232029
na_position : {'first', 'last'}, default 'last'
20242030
`first` puts NaNs at the beginning, `last` puts NaNs at the end
2025-
sort_remaining : bool, default True
2026-
if true and sorting by level and index is multilevel, sort by other
2027-
levels too (in order) after sorting by specified level
20282031
20292032
Returns
20302033
-------

0 commit comments

Comments
 (0)