With one dataframe, and for each entry, I want to find the number of times the row data
"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'