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

Comments

Projects
None yet
1 participant
@cancan101
Copy link

commented Jan 30, 2014

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

This comment has been minimized.

Copy link
Author

commented Jan 30, 2014

Oops. Wrong github.

@cancan101 cancan101 closed this Jan 30, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.