Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b86d884

Browse files
committedAug 16, 2018
fix typo
1 parent 48eff73 commit b86d884

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎pandas/core/indexes/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,8 +1370,8 @@ def rename(self, name, inplace=False):
13701370
... names=['foo', 'bar'])
13711371
>>> idx.rename(['bar', None])
13721372
MultiIndex(levels=[[1, 2], ['one', 'two']],
1373-
labels=[[0, 0, 1, 1], [0, 1, 0, 1]],
1374-
names=['bar', None])
1373+
labels=[[0, 0, 1, 1], [0, 1, 0, 1]],
1374+
names=['bar', None])
13751375
>>> idx.rename(['bar'])
13761376
Traceback (most recent call last):
13771377
ValueError: Length of names must match number of levels in MultiIndex.

0 commit comments

Comments
 (0)
Please sign in to comment.