delete all rows of dataframe pandas code example Example: delete rows in dataframe pandas df.drop(df.index[2])