if a dataframe contains a string delete row code example Example: remove rows from pandas dataframe that have text df[df.columnName != 'text']