pycensus.census.countries.chile.sii¶
Chile SII comunal jobs-by-workplace source (bulk .xlsx download, Servicio de Impuestos Internos).
Importing this module registers the gdf.sii_cl GeoDataFrame accessor
(see :mod:pycensus.accessors). Use :func:load to fetch data.
Source
https://www.sii.cl/estadisticas/region/PUB_Reg_Com.xlsx
(real comuna-level dependent-worker counts, i.e. jobs located in the
comuna -- see :mod:pycensus.census.countries.chile.sii.api module docstring
for verification notes and the 2015-vintage caveat).
load(aoi=None, regions=None, level='comuna', year='latest', cache_dir=None, cache=True, data_dir=None)
¶
Load Chile SII comunal jobs-by-workplace 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]
|
Ignored -- SII's file only carries data through commercial
year 2015 (the latest available row is always used). See
:mod: |
'latest'
|
cache_dir
|
Optional[str]
|
Root of pyCensus' parquet cache. |
None
|
cache
|
bool
|
If |
True
|
data_dir
|
Optional[str]
|
Base directory for the raw .xlsx/.geojson cache. |
None
|
Returns:
| Type | Description |
|---|---|
GeoDataFrame
|
GeoDataFrame with |
Raises:
| Type | Description |
|---|---|
ValueError
|
If neither |