Skip to content

Commit a6183a2

Browse files
ZhuBaohejreback
authored andcommitted
DOC: correct Series.reset_index example (#19832)
1 parent ca05d7c commit a6183a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/series.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ def reset_index(self, level=None, drop=False, name=None, inplace=False):
10151015
>>> s = pd.Series([1, 2, 3, 4], index=pd.Index(['a', 'b', 'c', 'd'],
10161016
... name = 'idx'))
10171017
>>> s.reset_index()
1018-
index 0
1018+
idx 0
10191019
0 0 1
10201020
1 1 2
10211021
2 2 3

0 commit comments

Comments
 (0)