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 ( |
True
|
data_dir
|
Optional[str]
|
Root of the raw cache. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
GeoDataFrame
|
GeoDataFrame with |
|
GeoDataFrame
|
|
|
included |
GeoDataFrame
|
see :func: |
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 |