Skip to content

Commit 423c771

Browse files
Adding note that na_position doesn't work for MultiIndex
1 parent b013103 commit 423c771

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/generic.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2029,7 +2029,8 @@ def sort_values(self, by, axis=0, ascending=True, inplace=False,
20292029
DataFrames, this option is only applied when sorting on a single
20302030
column or label.
20312031
na_position : {'first', 'last'}, default 'last'
2032-
`first` puts NaNs at the beginning, `last` puts NaNs at the end
2032+
`first` puts NaNs at the beginning, `last` puts NaNs at the end.
2033+
Not implemented for MultiIndex.
20332034
sort_remaining : bool, default True
20342035
if true and sorting by level and index is multilevel, sort by other
20352036
levels too (in order) after sorting by specified level

0 commit comments

Comments
 (0)