Pandas caem valores zero
df.loc[(df!=0).any(axis=1)]
Courageous Cobra
df.loc[(df!=0).any(axis=1)]
np.delete(matrix, np.where(~matrix.any(axis=1))[0], axis=1)