I have a list of locations that is mixed with states, cities and countries, counties and regions, in abbreviations and some in full. For instance, NY, CA, England, UK, USA, Minnesota, London, Bradford, etc. I want it all to be converted to countries such as NY=USA, England=UK, Scotland = UK, Minnesota = USA, etc.
I want a package or library that I can use in my program to change any of the abbreviations, states, state codes, or any city to the country of the locations. So if you London, it should return the UK, Chicago to return the US, and so on.
Is it possible to achieve this in python? Thanks in advance.