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