dataframe remove rows with zero code example Example 1: remove 0th row pandas df1 = df.iloc[1:] Example 2: pandas drop zero values df.loc[(df!=0).any(axis=1)]