pandas drop rows that a column doesn't contain a certain string code example Example: remove rows from pandas dataframe that have text df[df.columnName != 'text']