Skip to content

Commit bc8ae8a

Browse files
committed
fix typo
1 parent ea7c93a commit bc8ae8a

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
@@ -1354,8 +1354,8 @@ def rename(self, name, inplace=False):
13541354
new index (of same type and class...etc) [if inplace, returns None]
13551355
13561356
Examples
1357-
-------
1358-
>>> idx = Index([1, 2, 3, 4], name = 'foo')
1357+
--------
1358+
>>> idx = Index([1, 2, 3, 4], name='foo')
13591359
Int64Index([1, 2, 3, 4], dtype='int64', name='foo')
13601360
>>> idx.rename('bar')
13611361
Int64Index([1, 2, 3, 4], dtype='int64', name='bar')

0 commit comments

Comments
 (0)