I have two separate pandas dataframes ( df1 and df2 ) that have several columns, but only one thing in common ("text").
I would like to find every row in df2 that does not have a match in any of the rows in the column that have df2 and df1 .
df1
AB text 45 2 score 33 5 miss 20 1 score
df2
CD text .5 2 shot .3 2 shot .3 1 miss
Result df (delete the line containing the gaps, as it occurs in df1)
CD text .5 2 shot .3 2 shot
Is it possible to use the isin method in this scenario?
python pandas
GNMO11
source share