Convert country names to and from 9 country code schemes.
A Python port of the countrycode
package for R:
This is alpha software; the script probably won't behave well in all cases.
- pandas >= 0.9.0rc2
git clone https://github.com/vincentarelbundock/pycountrycode cd pycountrycode sudo python setup.py install
from pycountrycode import countrycode countrycode(origin='country_name', target='iso3c', codes=['Algeria', 'United States']) > ['DZA', 'USA']