How can I delete rows in numpy 2d array where value in specific column is not within other array/list. Speed is important.
I found out how to keep only rows by conditioning column to specific value:
xyzv = xyzv[xyzv[:,3].astype(int) == 100]
But I need to compare it with way more values (array of my values). I just shoot into the dark:
xyzv = xyzv[xyzv[:,3].astype(int) in my_values]
And some other variations. But python didn't laugh.