pycensus.census.countries.eu.constants¶
Static reference data shared by every EU-wide (Eurostat / GISCO) source.
Technical aspects
Eurostat and its geographic service GISCO publish keyless, EU-wide data for the EU-27 plus the EFTA countries and
candidates (Iceland, Liechtenstein, Norway, Switzerland, North Macedonia, Serbia, Albania, Montenegro, Turkey...).
Coverage differs per dataset: the Census 2021 grid covers the EU-27 plus Norway, Switzerland and Liechtenstein; the
LAU tables add some candidates (with zero population where the country did not report). Countries use the
Eurostat two-letter codes, which differ from ISO 3166 for Greece (EL, ISO GR) and in older vintages the
United Kingdom (UK, ISO GB).
All URLs below were checked live on 2026-11-17.
to_eurostat(code)
¶
Eurostat two-letter country code from an ISO 3166-1 alpha-2 (or Eurostat) code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
code
|
str
|
|
required |
Returns:
| Type | Description |
|---|---|
str
|
The Eurostat code ( |