File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -6890,7 +6890,8 @@ def sort_values(
6890
6890
builtin :meth:`sorted` function, with the notable difference that
6891
6891
this `key` function should be *vectorized*. It should expect a
6892
6892
``Series`` and return a Series with the same shape as the input.
6893
- It will be applied to each column in `by` independently.
6893
+ It will be applied to each column in `by` independently. The values in the
6894
+ returned Series will be used as the keys for sorting.
6894
6895
6895
6896
Returns
6896
6897
-------
Original file line number Diff line number Diff line change @@ -4884,7 +4884,8 @@ def sort_values(
4884
4884
builtin :meth:`sorted` function, with the notable difference that
4885
4885
this `key` function should be *vectorized*. It should expect a
4886
4886
``Series`` and return a Series with the same shape as the input.
4887
- It will be applied to each column in `by` independently.
4887
+ It will be applied to each column in `by` independently. The values in the
4888
+ returned Series will be used as the keys for sorting.
4888
4889
4889
4890
Returns
4890
4891
-------
You can’t perform that action at this time.
0 commit comments