how to delete certain rows in dataframe python code example Example: delete a row in pandas dataframe df.drop(df.index[2])