Skip to content

Commit f29a9b8

Browse files
committed
update set_levels docstrings for clarity
1 parent 78be91c commit f29a9b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/indexes/multi.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,8 @@ def set_levels(self, levels, level=None, inplace=False, verify_integrity=True):
787787
788788
If any of the levels passed to ``set_levels()`` exceeds the
789789
existing length, all of the values from that argument will
790-
be stored though truncated in the MultiIndex output.
790+
be stored in the MultiIndex levels, though the values will
791+
be truncated in the MultiIndex output.
791792
792793
>>> idx.set_levels([['a', 'b', 'c'], [1, 2, 3, 4]], level=[0, 1])
793794
MultiIndex([('a', 1),

0 commit comments

Comments
 (0)