go-gota / gota

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

Feat: add PROD operation in series and aggregation #204

Open dpc11 opened 1 year ago

dpc11 commented 1 year ago

Should be convenient if add PROD operation in series and dateframe aggregation

Furthermore, aggregation can be more optimized with user defined aggregation, how about this?

type aggragation interface {
    colname() string
    aggFunc(s series.Series) float64
}

func (gps Groups) Aggregation(aggs []aggragation) DataFrame