-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: name(s) argument for reset_index? #6878
New issue
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
Comments
you can do df = df.copy() so this is a convience yes? |
yes, as a convenience I think (and like this it would do a copy less, only the copy inside reset_index?) |
Series already has this do just a extending to df yes? sounds good |
Ah, I didn't know Series.reset_index already had something like this. Would certainly be a reason to get that aligned. Only problems is that it is different there, as it specifies the name for the Series values, not for the index ..
|
index name kwarg? |
This also partially solves #6181 |
An idea: to be able to specify the a name when resetting the index, which would override the index name or the default value when index name is None.
Eg something like this:
For multi-index, you should provide a list.
The text was updated successfully, but these errors were encountered: