Skip to content

Commit 7332255

Browse files
committed
DOC: add comment to nargsort call in Series.sort_values
1 parent 151c425 commit 7332255

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/core/series.py

+1
Original file line numberDiff line numberDiff line change
@@ -3276,6 +3276,7 @@ def sort_values(
32763276

32773277
arr = self._values
32783278

3279+
# GH 35922. Make sorting stable by leveraging nargsort
32793280
sorted_index = nargsort(arr, kind, ascending, na_position, key)
32803281

32813282
result = self._constructor(arr[sorted_index], index=self.index[sorted_index])

0 commit comments

Comments
 (0)