how to remove a certain row from a pandas dataframe code example Example 1: remove 0th row pandas df1 = df.iloc[1:] Example 2: dataframe delete row df.drop(df.index[2])