how to delete rows that contain a specific word in pandas code example Example: remove rows from pandas dataframe that have text df[df.columnName != 'text']