Skip to content

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 regions if not given (via :func:pycensus.census.countries.chile.geography.regions_in_aoi), and to clip the final result.

None
regions Optional[Union[str, List[str]]]

Region name(s)/code(s) to load. Derived from aoi if omitted (aoi is then required).

None
level str

Must resolve to "comuna" -- the only level this source publishes.

'comuna'
year Union[int, str]

Vintage year, or "latest". Only 2022 (Casen 2022) is available.

'latest'
cache_dir Optional[str]

Root of pyCensus' parquet cache. Defaults to :func:pycensus.cache.default_cache_dir.

None
cache bool

If False, bypass the parquet cache entirely.

True
data_dir Optional[str]

Base directory for the raw .xlsx cache. Defaults to :data:pycensus.census.countries.chile.constants.DEFAULT_DATA_DIR.

None

Returns:

Type Description
GeoDataFrame

GeoDataFrame with GEOID, geometry, and one casen_cl-

GeoDataFrame

prefixed column per logical column in

GeoDataFrame

data:pycensus.census.countries.chile.casen.schema.SCHEMA.

Raises:

Type Description
ValueError

If neither regions nor aoi is given.