Datatypes › Geographic identifiers › country

ISO 3166-1 Alpha2 country code

ID countrycode_alpha2

Pattern of countryNot PIIcategorical

ISO 3166-1 alpha-2 codes are two-letter country codes defined in ISO 3166-1, part of the ISO 3166 standard published by the International Organization for Standardization (ISO), to represent countries, dependent territories, and special areas of geographical interest.

Pattern of
Country code or name country
Categories
Geographic identifiers
Countries
Global (not tied to a country)
Languages
Common to most languages
AutoType benchmark
countrycode
Bioregistry
iso.3166-2
FTA
COUNTRY.ISO-3166-2
Wikidata
P297
Quality
90/100 · missing: negative example, translation
Metacrafter rules
5 rules (0 by field name, 5 by value)
Supported by tools
Auto-Type, csv-detective, FTA (Fast Text Analysis), Great Expectations Semantic Types Expectations, IBM Knowledge Catalog (IBM watsonx.data intelligence), metacrafter, Pydantic and pydantic-extra-types, SDV sdtypes (Synthetic Data Vault), Tableau, Talend (Qlik Talend Data Preparation, Data Catalog and Data Inventory), validator.js, Alteryx Woodwork

Regular expression

^[A-Z]{2}$

Python re syntax.

Test a value

Examples

ValueDescription
WF Wallis and Futuna
AI Anguilla

Child datatypes

IDNameCategoriesCountriesDescription
eurostat_geo_code Eurostat country or aggregate code (GEO, CITIZEN) geo, government EU Code of a country or a group of countries in the code lists of Eurostat for the reporting country (GEO), the citizenship (CITIZEN), the...

Sources

Use this record