drop specific rows pandas code example Example 1: delete a row in pandas dataframe df.drop(df.index[2]) Example 2: remove 0th row pandas df1 = df.iloc[1:]