@@ -882,13 +882,13 @@ def set_codes(self, codes, level=None, inplace=False, verify_integrity=True):
882
882
Parameters
883
883
----------
884
884
codes : sequence or list of sequence
885
- new codes to apply
885
+ New codes to apply.
886
886
level : int, level name, or sequence of int/level names (default None)
887
- level (s) to set (None for all levels)
887
+ Level (s) to set (None for all levels).
888
888
inplace : bool
889
- if True, mutates in place
889
+ If True, mutates in place.
890
890
verify_integrity : bool (default True)
891
- if True, checks that levels and codes are compatible
891
+ If True, checks that levels and codes are compatible.
892
892
893
893
Returns
894
894
-------
@@ -1717,7 +1717,7 @@ def to_hierarchical(self, n_repeat, n_shuffle=1):
1717
1717
Parameters
1718
1718
----------
1719
1719
n_repeat : int
1720
- Number of times to repeat the labels on self
1720
+ Number of times to repeat the labels on self.
1721
1721
n_shuffle : int
1722
1722
Controls the reordering of the labels. If the result is going
1723
1723
to be an inner level in a MultiIndex, n_shuffle will need to be
@@ -2335,11 +2335,11 @@ def sortlevel(self, level=0, ascending=True, sort_remaining=True):
2335
2335
Parameters
2336
2336
----------
2337
2337
level : list-like, int or str, default 0
2338
- If a string is given, must be a name of the level
2338
+ If a string is given, must be a name of the level.
2339
2339
If list-like must be names or ints of levels.
2340
2340
ascending : bool, default True
2341
- False to sort in descending order
2342
- Can also be a list to specify a directed ordering
2341
+ False to sort in descending order.
2342
+ Can also be a list to specify a directed ordering.
2343
2343
sort_remaining : sort by the remaining levels after level
2344
2344
2345
2345
Returns
0 commit comments