I have a master dataframe df1 which has unique column combinations ('a' and 'b')
df1:
a b
A 1
B 4
K 5
I want to use these combinations to compare df2, iterating through each column and returning True or False based on whether the combination in df2 matches that of df1.
df2:
a b c
A 1 TRUE
B 4 TRUE
K 1 FALSE
For example the 3rd row in df2 K, 1 does not match the K value in df1 (K,5). Just fyi, the number of rows will be larger for df2
Thanks a lot for your help.