reset_index + set_index with drop=False #1348

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

Projects

None yet

1 participant

@cancan101

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

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