rocketlaunchr / dataframe-go

DataFrames for Go: For statistics, machine-learning, and data manipulation/exploration
Other
1.16k stars 93 forks source link

sort having issue with ctx #29

Closed ayanDas-isi closed 4 years ago

ayanDas-isi commented 4 years ago

sks := []dataframe.SortKey{ {Key: "sales", Desc: true}, {Key: "day", Desc: true}, }

df.Sort(ctx, sks)

In this code you have provided in readme, ctx is not defined any where before that. I got it is coming from context but I think we need to initialize this ctx first before calling df.Sort(ctx, sks). Kindly guide me. Thanks in advance.

pjebs commented 4 years ago

ctx := context.Background()