go-gota / gota

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

Subset Range #221

Open yuseferi opened 6 months ago

yuseferi commented 6 months ago

Hello, I noticed the subSet actually just getting the mentioned indexes, I mean

.Subset([]int{0, 100})

just returns records in index 0 and 100.

I'm wondering how can I get a subset range from 0-100?

one solution could be I create a slice as an index slice and pass it to this function but I think it is no a very nice solution maybe something inside the package could be helpful.

if there is nothing maybe I could assist in implementing it. wdyt?

Cheers