List of continent codes

2,429
Updated:
Files:1
Size:97 B
Formats:csv
License:ODC-PDDL-1.0

A list of the seven continents with English names and short, unique and permanent identifying codes. Data provides list of continents with their two letter codes. Data is made manually, according ...

Part of these Data Solutions

  • Global Country & Region Reference Data Solution

    Authoritative country codes, regions and location reference data to power your location-based solutions.

    Explore →
  • Logistics Data Solution

    Comprehensive reference for shipping codes, container standards and more.

    Explore →

API Access

Access dataset files directly from scripts, code, or AI agents.

Browse dataset files
Dataset Files

Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.

/core/continent-codes/
https://datahub.io/core/continent-codes/_r/-/.gitattributes
https://datahub.io/core/continent-codes/_r/-/ATTRIBUTION.txt
https://datahub.io/core/continent-codes/_r/-/README.md
https://datahub.io/core/continent-codes/_r/-/data/continent-codes.csv
https://datahub.io/core/continent-codes/_r/-/datapackage.json
Key Files

Start with these files — they give you everything you need to understand and access the dataset.

datapackage.json— metadata & schema
https://datahub.io/core/continent-codes/_r/-/datapackage.json
README.md— documentation
https://datahub.io/core/continent-codes/_r/-/README.md
Typical Usage
  1. 1. Fetch datapackage.json to inspect schema and resources
  2. 2. Download data resources listed in datapackage.json
  3. 3. Read README.md for full context

Data Files

Explore with AI

continent-codes


About this dataset

badge

Continent Codes

The seven continents with their English names and short, unique two-letter codes, in one CSV file.

Column definitions and types are in datapackage.json.

Data

data/continent-codes.csv has 7 rows, one per continent:

ColumnMeaning
CodeTwo-letter continent code, for example EU. Unique. The code for North America is NA
NameEnglish name of the continent, for example Europe

Known limitations

  • "NA" is a code, not a missing value. The code for North America is the two letters NA. Many tools read the text NA as "missing" by default. For example, pd.read_csv("data/continent-codes.csv") returns an empty value (NaN) for North America. To keep it, read the file with keep_default_na=False:

    import pandas as pd
    df = pd.read_csv("data/continent-codes.csv", keep_default_na=False)
    

    If you also want empty cells to count as missing, add na_values=[""].

  • The codes follow the lists in the sources below. One of them, the USGS list, calls the code SA "South and Central America". This file uses "South America", as the Wikipedia and PHP lists do.

Data sources

The data is made by hand, according to several sources that use this kind of two-letter continent code. The 7 codes and 7 English names agree with the four sources below.

  • Country codes from the GeoNames geographical database. Licence: CC BY, with credit asked (terms). GeoNames does not state a version number.
  • Abbreviations from the International Astronomical Union (IAU) Working Group for Planetary System Nomenclature (WGPSN). The page is maintained by the U.S. Geological Survey (USGS) on behalf of the IAU. USGS says content it authored is in the U.S. public domain and asks for credit (USGS copyright page). The IAU's own terms for this list are unclear. None were found.
  • Wikipedia article from Wikipedia, the free encyclopedia. Licence: CC BY-SA 4.0 for its text. Only seven plain facts (the codes and names) were taken, and they also appear in the other sources. We judge that this does not make the dataset a copy or adaptation of the page. This is our judgement. Nobody has confirmed it legally.
  • PHP function from the PHP manual. Licence: Creative Commons Attribution 3.0 or later. Credit is required.

Changes made to the source data: none. The file is made by hand according to the sources above, not produced by copying a file or table from them.

Not endorsed by, or affiliated with, GeoNames, the USGS, the IAU, Wikipedia or the PHP Group.

Preparation

There is no script. The file is edited by hand. A GitHub workflow checks datapackage.json with frictionless validate on every push to main and on every pull request. It does not change the data.

To run the same check yourself:

pip install frictionless
frictionless validate datapackage.json

License

The maintainers place their own work on this data package (the selection and the file) under the Public Domain Dedication and License v1.0 (PDDL). That covers no more than that. The PDDL does not change the terms of the sources, which differ:

  • GeoNames: CC BY, credit asked.
  • PHP manual: CC BY 3.0 or later, credit required.
  • USGS/IAU page: USGS-authored content is U.S. public domain, credit requested. The IAU's own terms are unclear.
  • Wikipedia: CC BY-SA 4.0 applies to its text and table. Only seven plain facts were taken. Our view that this does not trigger the share-alike term is a judgement, not confirmed legally.

The data is not claimed to be entirely public domain. The credits are in ATTRIBUTION.txt.