Skip to content

DOC: Clean sort_values and sort_index docstrings #24843

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jan 27, 2019
8 changes: 4 additions & 4 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3977,7 +3977,7 @@ def sort_values(self, by=None, axis=0, ascending=True, inplace=False,
orders. If this is a list of bools, must match the length of
the by.
inplace : bool, default False
if True, perform operation in-place
If True, perform operation in-place
kind : {'quicksort', 'mergesort', 'heapsort'}, default 'quicksort'
Choice of sorting algorithm. See also ndarray.np.sort for more
information. `mergesort` is the only stable algorithm. For
Expand Down Expand Up @@ -4062,11 +4062,11 @@ def sort_index(self, axis=0, level=None, ascending=True, inplace=False,
----------
axis : %(axes)s to direct sorting
level : int or level name or list of ints or list of level names
if not None, sort on values in specified index level(s)
If not None, sort on values in specified index level(s)
ascending : boolean, default True
Sort ascending vs. descending
inplace : bool, default False
if True, perform operation in-place
If True, perform operation in-place
kind : {'quicksort', 'mergesort', 'heapsort'}, default 'quicksort'
Choice of sorting algorithm. See also ndarray.np.sort for more
information. `mergesort` is the only stable algorithm. For
Expand All @@ -4076,7 +4076,7 @@ def sort_index(self, axis=0, level=None, ascending=True, inplace=False,
`first` puts NaNs at the beginning, `last` puts NaNs at the end.
Not implemented for MultiIndex.
sort_remaining : bool, default True
if true and sorting by level and index is multilevel, sort by other
If True and sorting by level and index is multilevel, sort by other
levels too (in order) after sorting by specified level

Returns
Expand Down