pycensus.census.countries.euskadi.eustat¶
Euskadi municipal population source (real data via Eurostat/GISCO LAU).
Importing this module registers the gdf.eustat GeoDataFrame accessor
(see :mod:pycensus.accessors). Use :func:load to fetch data.
Technical aspects
Named eustat for continuity with the column-naming convention
(eustat_population, etc.), but see api.py and geography.py
for why the actual data comes from Eurostat/GISCO's LAU dataset rather
than eustat.eus directly (that portal 403s a scripted client).
Source
https://gisco-services.ec.europa.eu/distribution/v2/lau/lau-2021-files.html
load(aoi=None, regions=None, level='municipality', year='latest', api_key=None, cache_dir=None, cache=True, data_dir=None)
¶
Load Euskadi municipal population data as a common-schema GeoDataFrame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
aoi
|
Optional[GeoDataFrame]
|
Area of interest. Used to auto-detect |
None
|
regions
|
Optional[Union[str, List[str]]]
|
Territory name(s)/abbreviation(s)/code(s) to load (Araba,
Bizkaia, Gipuzkoa or 01, 48, 20). Derived from |
None
|
level
|
str
|
Standard geometry level name. Real levels implemented here
are |
'municipality'
|
year
|
Union[int, str]
|
Vintage year, or |
'latest'
|
api_key
|
Optional[str]
|
Unused -- no API key is required for this source. |
None
|
cache_dir
|
Optional[str]
|
Root of pyCensus' parquet cache. |
None
|
cache
|
bool
|
If |
True
|
data_dir
|
Optional[str]
|
Unused (kept for interface compatibility). |
None
|
Returns:
| Type | Description |
|---|---|
GeoDataFrame
|
GeoDataFrame with |
GeoDataFrame
|
column per logical column in :data: |
Raises:
| Type | Description |
|---|---|
ValueError
|
If neither |