Multi-Regional Input-Output Analysis in Python.


Status Beta
Role Maintainer
Duration ongoing

The country converter (coco) is a Python package to convert and match country names between different classifications and between different naming versions. Internally it uses regular expressions to match country names. Coco can also be used to build aggregation concordance matrices between different classification schemes.

The country converter (coco) automates the conversion from different standards and version of country names. Internally, coco is based on a table specifying the different ISO and UN standards per country together with the official name and a regular expression which aim to match all English versions of a specific country name. In addition, coco includes classification based on UN-, EU-, OECD-membership, UN regions specifications, continents and various MRIO and IAM databases

Classification schemes

Currently the following classification schemes are available (see also Data sources below for further information):

  1. ISO2 (ISO 3166-1 alpha-2)

  2. ISO3 (ISO 3166-1 alpha-3)

  3. ISO - numeric (ISO 3166-1 numeric)

  4. UN numeric code (M.49 - follows to a large extend ISO-numeric)

  5. A standard or short name

  6. The "official" name

  7. Continent

  8. UN region

  9. EXIOBASE 1 classification

  10. EXIOBASE 2 classification

  11. EXIOBASE 3 classification

  12. WIOD classification

  13. Eora

  14. OECD membership (per year)

  15. MESSAGE 11-region classification

  16. IMAGE

  17. REMIND

  18. UN membership (per year)

  19. EU membership (including EU12, EU15, EU25, EU27, EU27_2007, EU28)

  20. EEA membership

  21. Schengen region

  22. Cecilia 2050 classification

  23. APEC

  24. BRIC

  25. BASIC

  26. CIS (as by 2019, excl. Turkmenistan)

  27. G7

  28. G20 (listing all EU member states as individual members)