If there is any possibility to make this code simpler, I'd really appreciate it! I am trying to get rid of rows with zeros. The first column is date. If all other columns are zero, they have to be deleted. Number of columns varies.
import numpy as np
condition = [ np.any( list(x)[1:] ) for x in r]
r = np.extract( condition, r )