pycensus.census.countries.chile.casen¶
Chile Casen SAE comunal poverty source (bulk .xlsx download, Ministerio Desarrollo Social y Familia).
Importing this module registers the gdf.casen_cl GeoDataFrame accessor
(see :mod:pycensus.accessors). Use :func:load to fetch data.
Source
https://observatorio.ministeriodesarrollosocial.gob.cl/storage/docs/
pobreza-comunal/2022/Estimaciones_Tasa_Pobreza_Ingresos_Comunas_2022.xlsx
https://observatorio.ministeriodesarrollosocial.gob.cl/storage/docs/
pobreza-comunal/2022/Estimaciones_Indice_Pobreza_Multidimensional_Comunas_2022.xlsx
(real Casen 2022 survey estimates, downscaled to comuna level via a
Fay-Herriot small-area-estimation model -- see
:mod:pycensus.census.countries.chile.casen.api module docstring for
verification notes).
load(aoi=None, regions=None, level='comuna', year='latest', cache_dir=None, cache=True, data_dir=None)
¶
Load Chile Casen SAE comunal poverty 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 name(s)/code(s) to load. Derived from |
None
|
level
|
str
|
Must resolve to |
'comuna'
|
year
|
Union[int, str]
|
Vintage year, or |
'latest'
|
cache_dir
|
Optional[str]
|
Root of pyCensus' parquet cache. Defaults to
:func: |
None
|
cache
|
bool
|
If |
True
|
data_dir
|
Optional[str]
|
Base directory for the raw .xlsx cache. Defaults to
:data: |
None
|
Returns:
| Type | Description |
|---|---|
GeoDataFrame
|
GeoDataFrame with |
GeoDataFrame
|
prefixed column per logical column in |
GeoDataFrame
|
data: |
Raises:
| Type | Description |
|---|---|
ValueError
|
If neither |