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.54k stars 313 forks source link

Aggregation operations after groupby() #86

Closed zainryan closed 4 years ago

zainryan commented 4 years ago

Hi! Aggregation after groupby is a common operation in Pandas. I found DataFrame library supports sum after groupby via GroupbySum. I'm curious if there are more supported aggregation functions, say, max, min, and median.

hosseinmoein commented 4 years ago

Yes, currently I only have the groupby sum. But it is easy to add the others. I will add them as time permits. In the meanwhile I welcome contributions if you feel like it. We

hosseinmoein commented 4 years ago

@zainryan , I streamlined the groupby function and added more aggregator functors for group-by. Please see https://htmlpreview.github.io/?https://github.com/hosseinmoein/DataFrame/blob/master/docs/HTML/groupby.html

zainryan commented 4 years ago

Thanks, it's very useful!