You can exclude those elements as follows:
>>> import numpy as np
>>> x = np.array([ [1.0, 0.0, 2.0], [0.0, 0.0, 0.0], [2.0, 1.0, 0.0] ])
>>> x
array([[1., 0., 2.],
[0., 0., 0.],
[2., 1., 0.]])
>>> sumrow = np.abs(x).sum(-1)
>>> x[sumrow>0]
array([[1., 0., 2.],
[2., 1., 0.]])
Note: @Akavall pointed out correctly that np.abs() would prevent issues with negative values.
Additionally, another more complex approach:
>>> x = np.array([ [1.0, 0.0, 2.0], [0.0, 0.0, 0.0], [2.0, 1.0, 0.0] ])
>>> x[~np.all(x == 0, axis=1)]
array([[1., 0., 2.],
[2., 1., 0.]])
See: https://www.geeksforgeeks.org/numpy-indexing/