np.where
myArr = np.array([ [1,2,3,4,1], [5,6,7,8,0], [9,10,11,12,1] myArr[ np.whare(myArr[:,4]>0) ] # array([[ 1, 2, 3, 4, 1], # [ 9,10,11,12, 1 ]])
myArr = np.array([ [1,2,3,4,1], [5,6,7,8,0], [9,10,11,12,1] myArr[ np.whare(myArr[:,4]>0) ] # array([[ 1, 2, 3, 4, 1], # [ 9,10,11,12, 1 ]])