pandas drop all rows with one zero code example Example: pandas drop zero values df.loc[(df!=0).any(axis=1)]