remove rows based on index pandas code example Example: remove rows from dataframe df.drop(['Cochice', 'Pima'])