go-gota / gota

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

Add `GetGroups` method to Groups struct #151

Closed arjunmahishi closed 3 years ago

arjunmahishi commented 3 years ago

Currently the Groups created by the Dataframe.GroupBy method is limited to what Groups.Aggregation has to offer. So, this PR adds a new method Groups.GetGroups that gives user the freedom to build custom aggregations on top of the created groups.

The other minor change introduced is, to use go's stringer tool to manage the AggregationType enum