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