I have a dataframe with two boolean columns.
I am trying to assign a new column using the following logic:
df['C'] = df['A']==True and df['B']==False
The error says the truth of a Series is ambiguous. I can see the problem but I don't know how to tell it that I want it perform the operation row-wise.