Skip to content

implements DataFrame#reset_index#473

Merged
v0dro merged 4 commits intoSciRuby:masterfrom
Yuki-Inoue:df-reset-index
Dec 4, 2018
Merged

implements DataFrame#reset_index#473
v0dro merged 4 commits intoSciRuby:masterfrom
Yuki-Inoue:df-reset-index

Conversation

@Yuki-Inoue
Copy link
Copy Markdown
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