pycensus.census.countries.chile.elections¶
Chile election results (2025 presidential runoff, mesa level) for Gran Concepcion, resampled to H3 res 8 and census manzana / zona.
load(scope='national', level='manzana', **kw)
¶
Example: load("national", level="manzana", aoi=gdf); levels manzana, zona, h3, local.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scope
|
str
|
Only |
'national'
|
level
|
str
|
|
'manzana'
|
**kw
|
Passed to :func: |
{}
|
Returns:
| Type | Description |
|---|---|
DataFrame
|
The frame of that level. |
load_all(scope='national', census_geometry=None, aoi=None, worldpop_path=None, cache_dir=None, geocode=True)
¶
{"local", "h3", "manzana", "zona"} frames. aoi: GeoDataFrame with a municipality column (comuna polygons).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scope
|
str
|
Only |
'national'
|
census_geometry
|
Optional[Dict[str, GeoDataFrame]]
|
|
None
|
aoi
|
Optional[GeoDataFrame]
|
Comuna polygons ( |
None
|
worldpop_path
|
Optional[str]
|
Explicit WorldPop raster. |
None
|
cache_dir
|
Optional[str]
|
Cache folder; |
None
|
geocode
|
bool
|
Geocode the polling places. |
True
|
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
For another scope. |