I have a numpy array which is 300 rows and 5 columns
X[X[:,0]==1,[1,2]]
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-154-de5e74bc1a0b> in <module>()
----> 1 X[X[:,0]==1,[1,2]]
ValueError: shape mismatch: objects cannot be broadcast to a single shape
How to make this work? I want to filter the first column (equals 1) but returns a copy of second and third column.