I have two separate pandas dataframes (df1 and df2) which have multiple columns, but only one in common (\'text\').
df1
df2
I would like to do fin
As you asked, you can do this efficiently using isin (without resorting to expensive merges).
isin
merge
>>> df2[~df2.text.isin(df1.text.values)] C D text 0 0.5 2 shot 1 0.3 2 shot