I am trying to define a new column in pandas if one of the other three string columns are specific values.
df.loc[df['member1_labels'] == 'F' or df['member2_labels'] == 'F' or df['member3_labels'] == 'F', 'total_score'] = 'F'
But I get the following error:
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
How I can fix this?