With one dataframe, and for each entry, I want to find the number of times the row data `"new_page"`

and `"treatment"`

don't match.

Can someone also explain to me how to add an image? https://ibb.co/gSv7FR4

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.

```
if df.group[n]=='treatment' and df.landing_page[n]=='new_page'
```

This would give the total times when

`'new_data'`

and`'treatment'`

are in the same row: