remove rows that contain substring in string in column pandas code example Example: remove rows from pandas dataframe that have text df[df.columnName != 'text']