how to drop rows in pandas dataframe based on string value code example Example: remove rows from pandas dataframe that have text df[df.columnName != 'text']