pandas does not contain code example
Example: pandas string does not contain
# simply use the invert operator '~' with 'str.contains'
new_df = df[~df["col"].str.contains(word)]
# simply use the invert operator '~' with 'str.contains'
new_df = df[~df["col"].str.contains(word)]