How do I select rows of a matrix with a specific condition using np indexing?
My matrix is
n = np.array([[1,2],[4,5], [1,22]])
and I would like to select the rows whose first element is greater than one. Something similar to:
n[lambda x: x[0] > 1]