pandas string does not contain

22

# simply use the invert operator '~' with 'str.contains'
new_df = df[~df["col"].str.contains(word)]

Comments

Submit
0 Comments