@@ -882,13 +882,13 @@ def set_codes(self, codes, level=None, inplace=False, verify_integrity=True):
882882 Parameters
883883 ----------
884884 codes : sequence or list of sequence
885- new codes to apply
885+ New codes to apply.
886886 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).
888888 inplace : bool
889- if True, mutates in place
889+ If True, mutates in place.
890890 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.
892892
893893 Returns
894894 -------
@@ -1717,7 +1717,7 @@ def to_hierarchical(self, n_repeat, n_shuffle=1):
17171717 Parameters
17181718 ----------
17191719 n_repeat : int
1720- Number of times to repeat the labels on self
1720+ Number of times to repeat the labels on self.
17211721 n_shuffle : int
17221722 Controls the reordering of the labels. If the result is going
17231723 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):
23352335 Parameters
23362336 ----------
23372337 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.
23392339 If list-like must be names or ints of levels.
23402340 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.
23432343 sort_remaining : sort by the remaining levels after level
23442344
23452345 Returns
0 commit comments