df[df.CityLocation.str.contains('Delhi',case=False,na=False)].CityLocation= 'New Delhi'
So I want to change any value containing Delhi | delhi | new Delhi | New delhi | DELHI to 'New Delhi' in the column called 'CityLocation'. And I tried the above shown way but it doesn't reflect in dataframe. What am I missing?