Python newbie here, I have read Filter rows of a numpy array? and the doc but still can\'t figure out how to code it the python way.
Example array I have: (the real
Try this:
>>> a[numpy.in1d(a[:,1], filter)] array([['2', 'a'], ['4', 'c']], dtype='|S21')
Also go through http://docs.scipy.org/doc/numpy/reference/generated/numpy.in1d.html