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

implements DataFrame#reset_index #473

Merged
merged 4 commits into from
Dec 4, 2018
Merged

Conversation

Yuki-Inoue
Copy link
Contributor

@Yuki-Inoue Yuki-Inoue commented Dec 3, 2018

reset_index will change index into columns.
Refer: https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.reset_index.html

To implement this method, Index#to_df and MultiIndex#to_df was also defined. Since pandas also have such method, I think we can get benefits by implementing such method.
refer: https://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.MultiIndex.to_frame.html#pandas.MultiIndex.to_frame

@v0dro v0dro merged commit f9feb31 into SciRuby:master Dec 4, 2018
@Yuki-Inoue Yuki-Inoue deleted the df-reset-index branch December 4, 2018 10:49
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

Successfully merging this pull request may close these issues.

2 participants