hosseinmoein / DataFrame

C++ DataFrame for statistical, Financial, and ML analysis -- in modern C++ using native types and contiguous memory storage
https://hosseinmoein.github.io/DataFrame/
BSD 3-Clause "New" or "Revised" License
2.45k stars 310 forks source link

Adding support for reset_index() #225

Closed sierret closed 1 year ago

sierret commented 1 year ago

Consider adding support for Pandas reset_index().

This should be a trivial addition by simply using already present function replace_index, replacing index using already present function gen_sequence_index(1,size of df,1).

This is useful if you have removes a column(s) and still want a continuous sequence index column.

hosseinmoein commented 1 year ago

you can always use load_index() to reset/replace index