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.41k stars 306 forks source link

How to use .pivot or stack function in DataFrame #206

Closed WellYixuanDu closed 1 year ago

WellYixuanDu commented 1 year ago

I want to use the .pivot and .stack function like pandas, but don't know how to use them, can you tell me which function is used to implement them?

hosseinmoein commented 1 year ago

I have not yet implemented multi-level indices and pivot tables. But since DataFrame columns can be of any type, you can kind of simulate that with having DataFrame of DataFrames

WellYixuanDu commented 1 year ago

Thanks for your reply, if convenient ,could you give me a easy example to show it, i can't understand the " with having DataFrame of DataFrames" DataFrame's column is DataFrame? Sincere thanks.

hosseinmoein commented 1 year ago

Yes, That is what I meant, to have a DataFrame that has a DataFrame column. of course, I do not know exactly what you are trying to do. So, my suggestion may or may not be applicable to your use case