Jul-20-2020, 08:53 AM
I have a data frame with a column called 'city' containing city names. I also have a dictionary where the keys are city names and values are corresponding states.
If we want to add a column in the original data frame containing the state corresponding to each city in 'city', How should I do it?
If we want to add a column in the original data frame containing the state corresponding to each city in 'city', How should I do it?