So, I have a 2d array
a.shape
(1050, 21)
And a 1d array
b.shape
(1050,)
I’m looking for a way (other than iterating) to produce 1d array (let’s call it “c”) from “a” so that c[x] = a[x, b[x]]
So, I have a 2d array
a.shape
(1050, 21)
And a 1d array
b.shape
(1050,)
I’m looking for a way (other than iterating) to produce 1d array (let’s call it “c”) from “a” so that c[x] = a[x, b[x]]