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