human
Transform unicode string in python
assistant
Here is some code to encode value of key `City` in dictionary `data` as `ascii`, ignoring non-ascii characters

data['City'].encode('ascii', 'ignore')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.