drop rows with -inf pandas code example Example: remove rows from dataframe df.drop(['Cochice', 'Pima'])