I want to select only certain rows from a NumPy array based on the value in the second column. For example, this test array has integers from 1 to 10 in the second column.
test[numpy.logical_or.reduce([test[:,1] == x for x in wanted])]
The result should be faster than the original version since NumPy's doing the inner loops instead of Python.