I have a dataframe like this:
match_id inn1 bat bowl runs1 inn2 runs2 is_score_chased 1 1 KKR RCB 222 2 82 1 2
You need to reference the fact that you are iterating through the dataframe, so;
for i in (high_scores1): if(high_scores1['runs1'][i]>=high_scores1['runs2'][i]): high_scores1['is_score_chased'][i]='yes' else: high_scores1['is_score_chased'][i]='no'