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...