Skip to navigation
How to get in python the ISO3166-2 Subdivisions of countries like state,province etc
11.05.17
1. pip3 install pycountry 2. enter into python3 $ python3 3. >>> import pycountry >>> t = pycountry.subdivisions.get(code='UA-14') >>> print(t) Subdivision(code='UA-14', country_code='UA', name="Donets'ka Oblast'", parent_code=None, type='Province')
https://pypi.python.org/pypi/pycountry/
Reply
Anonymous
Information Epoch 1740266875
Effectiveness beats efficiency.
Home
Notebook
Contact us