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