Skip to content

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 regions if not given, 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 SII's comunal workbook publishes.

'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:pycensus.census.countries.chile.sii.api module docstring.

'latest'
cache_dir Optional[str]

Root of pyCensus' parquet cache.

None
cache bool

If False, bypass the parquet cache entirely.

True
data_dir Optional[str]

Base directory for the raw .xlsx/.geojson cache.

None

Returns:

Type Description
GeoDataFrame

GeoDataFrame with GEOID, geometry, and sii_cl_jobsTotal.

Raises:

Type Description
ValueError

If neither regions nor aoi is given.