I've two data-frame, that I want to merge.
df1
sample,items,score
a,p1,0.9
b,p2,0.8
c,p3,0.6
df2
sample,items,score
d,p2,0.75
e,p3,0.7
f,p4,0.65
merge data-frame will be
sample,items,score,df_name
a,p1,0.9,df1
b,p2,0.8,df1
e,p3,0.7,df2
Condition:
- same items value columns compared with score. If score large then , large value data frame row will add.