I generate a random matrix of normal distribution and size 4x4; then I have to select rows whose sum is greater than 0.
When I write the code using 2D indexing, the output doesn't seem right:
a = np.random.randn(4, 4)
a[a[:, 0] > 0]
What I am missing?