df1:
col1 col2 col3
abc 123 @#
def 456 *&
pqr 789 ^%
df2:
col1 col2 col3
def 456 *&
pqr 789 ^%
abc 123 @#
oup 852 $%
I have to check df1['col1'] with df2['col1'], as all the values of df1['col1'] are present in df2['col1'] it should return 'True'.
eg: to check def of df1['col1'] with def of df2['col1'] & likewise
I have used isin,eq,issubset functions which is not working
Expected output:
df2:
col1 col1_filter col2 col2_filter col3 Col3_filter
def True 456 True *& True
pqr 789 ^%
abc 123 @#
oup 852 $%