Datatypes › 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
80/100 · missing: anchored regexp, negative example, translation
Metacrafter rules
2 rules (0 by field name, 2 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, metacrafterpro, Tableau, Talend (Qlik Talend Data Preparation, Data Catalog and Data Inventory), Alteryx Woodwork

Regular expression

[A-Z]{2}

Python re syntax. Not anchored: it can match inside longer text.

Examples

ValueDescription
WFWallis and Futuna
AIAnguilla

Sources

Use this record