I have an array of shape [120000, 3] in which only the first 1500 elements are useful and the others are 0.
Here an example
[15.0, 14.0, 13.0]
[11.0, 7.0, 8.0]
[4.0, 1.0, 3.0]
[0.0, 0.0, 0.0]
[0.0, 0.0, 0.0]
[0.0, 0.0, 0.0]
[0.0, 0.0, 0.0]
I have to find a way to remove all the elements that are [0.0, 0.0, 0.0]. I tried to write this but it doesn't work
for point in points:
if point[0] == 0.0 and point[1] == 0.0 and point[2] == 0.0:
np.delete(points, point)
edit
All the solutions in the comment work, but I gave the green tick to the one I have used. Thanks to all.