delete one row from dataframe pandas based on the index code example Example: delete a row in pandas dataframe df.drop(df.index[2])