go-gota / gota

Gota: DataFrames and data wrangling in Go (Golang)
Other
2.98k stars 276 forks source link

feature: groupby and Aggregation #140

Closed wanglong001 closed 3 years ago

wanglong001 commented 3 years ago

I am a fan of Gota, I hope Gota will become better

ADD Feature:

  1. Groupby
  2. Aggregation
groups := df.GroupBy("key1", "key2") // Group by column "key1", and column "key2" 
aggre := groups.Aggregation([]AggregationType{Aggregation_MAX, Aggregation_MIN}, []string{"values", "values2"}) // Maximum value in column "values",  Minimum value in column "values2"

image

image

wanglong001 commented 3 years ago

Similar issue: https://github.com/go-gota/gota/issues/33

wanglong001 commented 3 years ago

@kmrx @kniren

Series has SUM and COUNT functions better

VulgarnyKarlson commented 3 years ago

+1

wanglong001 commented 3 years ago

@chrmang I resolved the conflict