title: Accessing and comparing data in two columns
body: <p>With one dataframe, and for each entry, I want to find the number of times the row data <code>"new_page"</code> and <code>"treatment"</code> don't match.</p>
  
  <p>Can someone also explain to me how to add an image? 
  <a href="https://ibb.co/gSv7FR4" rel="nofollow noreferrer">https://ibb.co/gSv7FR4</a></p>
  
  <p>I would imagine it's something like this where if the condition meet, count goes up. I would appreciate an explanation of how to do this in addition to the solution of the above problem.</p>
  
  <pre class="lang-py prettyprint-override"><code>if df.group[n]=='treatment' and df.landing_page[n]=='new_page'
  </code></pre>