Skip to content

pycensus.census.countries.eu.census_grid

Eurostat Census 2021 population grid, 1 km x 1 km, EU-27 + CH, LI, NO (resolution class high).

load(aoi=None, countries=None, populated_only=True, data_dir=None)

1 km grid cells of the Census 2021 grid.

Parameters:

Name Type Description Default
aoi

GeoDataFrame / GeoSeries of the area of interest; cells intersecting it are returned.

None
countries Union[None, str, Iterable[str]]

Eurostat or ISO2 code(s): only cells reported by these countries (border cells reported by several countries are kept for each of them).

None
populated_only bool

drop cells with no population (T == 0 and POPULATED == 0).

True
data_dir Optional[str]

Root of the raw cache.

None

Returns:

Name Type Description
GeoDataFrame

GeoDataFrame with GEOID (GRD_ID), countries (CNTR_ID), the :data:COLUMNS features,

GeoDataFrame

foreignBornPopulation, populated and geometry (1 km square, EPSG:4326). The unallocated rows are not

included GeoDataFrame

see :func:unallocated.

unallocated(data_dir=None)

Population each country could not place on the grid (one row per country, GEOID <CC>_unallocated).

Parameters:

Name Type Description Default
data_dir Optional[str]

Root of the raw cache.

None

Returns:

Type Description
DataFrame

DataFrame with GEOID, country and the feature columns (no geometry).