reset index series code example
Example 1: reset index
df.reset_index(drop=True)
Example 2: numpy series reset index
>>> s.reset_index(inplace=True, drop=True)
>>> s
0 1
1 2
2 3
3 4
Name: foo, dtype: int64
df.reset_index(drop=True)
>>> s.reset_index(inplace=True, drop=True)
>>> s
0 1
1 2
2 3
3 4
Name: foo, dtype: int64