go-gota / gota

Gota: DataFrames and data wrangling in Go (Golang)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

After Groupby,executing Aggregation error

huotianyu opened this issue · comments

After doing a lot of calculations, when it comes to groupby, Aggregation encountered a problem。
in the dataframe,map is not nil,but row is 0,

func (gps Groups) Aggregation(typs []AggregationType, colnames []string) DataFrame {
if gps.groups == nil {
return DataFrame{Err: fmt.Errorf("Aggregation: input is nil")}
}

Just judging whether “nil” is insufficient
Do you have any good suggestions or Could you fix this problem