For Pandas dataframes, remove rows with all 0s, also applies to remove other values.
Below lines all work.
df.loc[~(df==0).all(axis=1)]
df.loc[(df!=0).any(axis=1)]
df.loc[(df!=0).any(1)]
Source: https://stackoverflow.com/questions/22649693/drop-rows-with-all-zeros-in-pandas-data-frame