there are two dataframes A and B, df A like below including main nodes and their depends against each node:
NODE Depend
===== =============================
T1234 T1235 T1236 T1237 T1238
-------------------------------------
B1234 B1235 B1236 B1237 B1238
-------------------------------------
N1234 N1235 N1236 N1237 N1238
-------------------------------------
I wanna lookup each rows from df A in df B to find out are they all available in the df B or not.
Node
=====
T1234
T1235
T1236
T1237
T1238
B1234
B1235
B1238
N1234
N1237
if all cells in one row including the main node of df A are available in the df B then return True flag else return False in df A as a new column like below:
NODE Depend flag
===== ============================= =====
T1234 T1235 T1236 T1237 T1238 T
-------------------------------------------
B1234 B1235 B1236 B1237 B1238 F
-------------------------------------------
N1234 N1235 N1236 N1237 N1238 F
-------------------------------------------
what is the most efficient way to do this via pandas? i tried many ways like merging two df but found no way to can compare whole one row to lookup in the df B.