go-gota / gota

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

How to get sum of a columns in Gota #216

Open joshyjoy-angelone opened 11 months ago

joshyjoy-angelone commented 11 months ago

How can I get the sum of a column in Gota? Is there any method already there or do we have to calculate it manually?

didn't find any function in documentation

neeruuppalapati commented 11 months ago

Series has a sum function. df.Col(column) returns a series. You can do df.Col(desiredCol).Sum().