Skip to content

Commit bf1a596

Browse files
J535D165jreback
authored andcommitted
Small documentation fix for MultiIndex.sortlevel (pandas-dev#15345)
* doc fix for return values of MultiIndex.sortlevel * MultiIndex.sortlevel docs improved after feedback
1 parent 87c2c2a commit bf1a596

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/indexes/multi.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1399,7 +1399,11 @@ def sortlevel(self, level=0, ascending=True, sort_remaining=True):
13991399
14001400
Returns
14011401
-------
1402-
sorted_index : MultiIndex
1402+
sorted_index : pd.MultiIndex
1403+
Resulting index
1404+
indexer : np.ndarray
1405+
Indices of output values in original index
1406+
14031407
"""
14041408
from pandas.core.groupby import _indexer_from_factorized
14051409

0 commit comments

Comments
 (0)