I am stuck here. I have a dataset with a column of mixed city and states. Something like Charleston, West Virginia; NYC, NY; or Los Angeles, California.
What I need to do: I need to extract the cities from this column and generate a histogram for the cities. Like, if 5 of the record are from Charleston, 4 from LA, 0 from NYC, then the histogram would be a graph of these 3 cities with the numbers. This will give an overview of the number cases for each city.
Another problem: Some cities, like NYC, are in 2 different format: New York City, or NYC. How do I get around this?
Thanks a lot!
What I need to do: I need to extract the cities from this column and generate a histogram for the cities. Like, if 5 of the record are from Charleston, 4 from LA, 0 from NYC, then the histogram would be a graph of these 3 cities with the numbers. This will give an overview of the number cases for each city.
Another problem: Some cities, like NYC, are in 2 different format: New York City, or NYC. How do I get around this?
Thanks a lot!