Skip to content
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

reset_index + set_index with drop=False #1348

Closed
cancan101 opened this issue Jan 30, 2014 · 1 comment
Closed

reset_index + set_index with drop=False #1348

cancan101 opened this issue Jan 30, 2014 · 1 comment

Comments

@cancan101
Copy link

Is there a simple way to make the Index in a DataFrame into columns in a while still keeping the index?

Currently I do the following and am wondering if this is the best I can do:

df.reset_index().set_index(df.index.names, drop=False)
@cancan101
Copy link
Author

Oops. Wrong github.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant