x['radiant_melee']=0 if (x['r1_attack_type'] == 'Melee'): x['radiant_melee'] +=1 if x['r2_attack_type'] == 'Melee': x['radiant_melee'] +=1 if x['r3_attack_type'] == 'Melee': x['radiant_melee'] +=1 if x['r4_attack_type'] == 'Melee': x['radiant_melee'] +=1 if x['r5_attack_type'] == 'Melee': x['radiant_melee'] +=1
Выдало ошибку: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all(). Что делать?