Skip to content

Commit 43dd994

Browse files
Adding na_position for multiindex
1 parent aae1c1c commit 43dd994

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/series.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,8 @@ def sort_index(self, axis=0, level=None, ascending=True, inplace=False,
17821782
sort_remaining=sort_remaining)
17831783
elif isinstance(index, MultiIndex):
17841784
from pandas.core.groupby import _lexsort_indexer
1785-
indexer = _lexsort_indexer(index.labels, orders=ascending)
1785+
indexer = _lexsort_indexer(index.labels, orders=ascending,
1786+
na_position=na_position)
17861787

17871788
else:
17881789
from pandas.core.groupby import _nargsort

0 commit comments

Comments
 (0)