I have two dataframes:
DF1:
ID v1 v2 v3
289 1455.0 2.0 0.62239
289 1460.0 0.0 0.46037
289 1465.0 4.0 0.41280
290 1470.0 0.0 0.39540
290 1475.0 2.0 0.61809
290 1475.0 2.0 0.61809
DF2:
ID v1 v2 v3
289 1423.0 2.0 0.62239
289 142Q.0 0.0 0.46037
289 14FW.0 4.0 0.41280
290 14Q3.0 0.0 0.39540
290 1453.0 2.0 0.61809
290 1454.0 2.0 0.61809
I want to iterate each row in DF1 with every row in DF2 and see if it is in DF2, something like:
for row in results_01.iterrows():
diff = []
if row not in results_02:
add different one to 'diff'
print(diff)
I know the logic but not sure how to do this, new to Python, can anyone help me? Many thanks.