[Python] Why isn't this line replacing `Uganda` with `China`? [closed]

Discussão em 'Python' iniciado por Stack, Junho 3, 2025.

  1. Stack

    Stack Membro Participativo

    data.loc[(data['AwayTeam'] == 'Uganda'), 'AwayTeam'] = 'China'


    Why isn't this line replacing Uganda with China in that column?

    I expected Uganda to be replaced by China but all in vain.

    Continue reading...

Compartilhe esta Página