pycensus.census.countries.andorra.estadisticaad¶
Andorra's Departament d'Estadistica: population by parish/year.
See :mod:pycensus.andorra.estadisticaad.loader for the real, verified
source and :mod:pycensus.andorra.api for the underlying ArcGIS endpoints.
load(aoi=None, regions=None, level='parish', year='latest', api_key=None, cache_dir=None, cache=True, data_dir=None)
¶
Load Andorra's real population-by-parish 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]]]
|
Region code(s) -- a parish name or ISO 3166-2:AD code
( |
None
|
level
|
str
|
Standard geometry level name. Only |
'parish'
|
year
|
Union[int, str]
|
Vintage year, or |
'latest'
|
api_key
|
Optional[str]
|
Not used -- this source requires no API key. |
None
|
cache_dir
|
Optional[str]
|
Root of pyCensus' parquet cache. Defaults to
:func: |
None
|
cache
|
bool
|
If |
True
|
data_dir
|
Optional[str]
|
Accepted for interface parity; this loader has no raw on-disk cache of its own (the source is one small live request). |
None
|
Returns:
| Type | Description |
|---|---|
GeoDataFrame
|
GeoDataFrame with |
GeoDataFrame
|
|
GeoDataFrame
|
data: |
Raises:
| Type | Description |
|---|---|
ValueError
|
If neither |
NotImplementedError
|
If |