I have two dataframes:
DF1
A B
'a' 'x'
'b' 'y'
'c' 'z'
DF2
Col1 Col2
'j' 'm'
'a' 'x'
'k' 'n'
'b' 'y'
And want to look up if the rows of DF1 are contained in DF2, and add that column Bool_col to DF1, like this.
DF1
A B Bool_col
'a' 'x' True
'b' 'y' True
'c' 'z' False
I've tried by looking up the concatenation of A and B in the concatenation-list of Col1 and Col2, but my data is giving me unexpected trouble. Any help on how to do this without concatenating columns?