I have specific letters ’ that I want to remove from the string values in a dictionary wherever they are found. However, I don't know why a single change on a specific key works, while when looping on the whole dictionary doesn't.
The loop used is:
data_nv = {
    '00254325': 'remove something and something else etc etc ’, do this',
    '00348956': 'have fun here and here the’n get this and that'
}
for key in data_nv:
    if '’' in data_nv[key]:
        data_nv[key].replace('’', ' ')
If I do a replacement like the one below it works.
data_nv['00254325'].replace('’', ' ')
 
     
    