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