Removing rows in a pandas DataFrame where the row contains a string present in a list?,df[~df.From.str.contains('|'.join(ignorethese))]