SciRuby / daru

Data Analysis in RUby
BSD 2-Clause "Simplified" License
1.03k stars 139 forks source link

implements DataFrame#reset_index #473

Closed Yuki-Inoue closed 5 years ago

Yuki-Inoue commented 5 years ago

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