pytohnstr not contain code example
Example 1: pandas string does not contain
# simply use the invert operator '~' with 'str.contains'
new_df = df[~df["col"].str.contains(word)]
Example 2: python string does not contain
str = '£35,000 per year'
# check for '£' character in the string
'£' not in str
# >> False
'£' in str
# >> True