remove the rows where the column has zeros in pandas code example Example: pandas drop zero values df.loc[(df!=0).any(axis=1)]