We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In [10]: df = DataFrame({'A' : range(5)}) In [11]: df Out[11]: A 0 0 1 1 2 2 3 3 4 4 In [12]: df.index Out[12]: RangeIndex(start=0, stop=5, step=1) In [13]: df.reset_index() Out[13]: index A 0 0 0 1 1 1 2 2 2 3 3 3 4 4 4 In [14]: df.reset_index().index Out[14]: Int64Index([0, 1, 2, 3, 4], dtype='int64')
The text was updated successfully, but these errors were encountered:
I will take a stab at this.
Sorry, something went wrong.
BUG: .reset_index() should create a RangeIndex, #12071
16a7799
closed by #12080
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: