drop the zeros of rows particular datframe code example Example: pandas drop zero values df.loc[(df!=0).any(axis=1)]