I have been trying to search an answer for this and I can't find one - I must be misunderstanding something.
I simply want to sum the number of times a string ("True") occurs per row. The desired output is below:
d1 = {'score': ['True', 'True', 'False'], 'score2': ['False', 'True', 'True'], 'total': [1, 2, 1]}
df1 = pd.DataFrame(data=d1)