I have 2 DFs
DF1 & DF2
I have a column in DF1 lets call it ID. I want to check if the IDs from this column are in 2 columns from DF2 (Column names are ID1 & ID2).
I have tried this approach but it's only returning nan and false values.
DF2['Do_IDs_Exist'] = DF2[['ID1','ID2']].isin(DF1['ID'])