I have 2 dataframes.
One is
DF1
col1 col2 label
a qq 1
a ww 1
a ee 0
b qq 1
b ww 0
b rr 0
Another one is
DF2
col1 col2 label
a qq
a ww
a ee
b qq
b tt
b rr
So if there is matching pair with col1 and col2, I want to write label of DF1 to DF2 label. And if there is no matching pair, I want to just mark 0 to DF2 label.
How can i deal with this.
Thanks in advance.