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