go-gota / gota

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

Set value by filter dataframe #64

Closed phamthanhlam closed 4 years ago

phamthanhlam commented 6 years ago

I have a dataframe

df := dataframe.LoadRecords( [][]string{ []string{"Name", "Total"}, []string{"ABC", "4"}, []string{"XYX", "5"}, []string{"MNK", "4"}, []string{"OPP", "2"}, }, )

I filter the Name column for the OPP value and I want to change the Total column from 2 to 3. Hope for a help Thank you