I have two columns that I want to check to see if they have the same values. If they do, they receive a value of 1 and that gets entered into an existing column. But if it's not the same, they get 0 and that would also be entered in the same column.
I'm not sure if my logic is on the right path.
df['Score'] = ((df['Blue']).equals(df['Green']), 1)
df ['Score']= ((df['Blue']).!equals(df['Green']), 0)
I'm still trying to understand dataframes in Pandas. Any guidance will be helpful.