title: how to iterate each row of one dataframe and compare with rows in another dataframe in Python?
body: <p>I have two dataframes:</p>
  
  <p>DF1:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>DF2:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>I want to iterate each row in DF1 with every row in DF2 and see if it is in DF2, something like:</p>
  
  <pre><code>for row in results_01.iterrows():
      diff = []
      if row not in results_02:
          add different one to 'diff'
          print(diff)
  </code></pre>
  
  <p>I know the logic but not sure how to do this, new to Python, can anyone help me? Many thanks.</p>