Skip to content

pycensus.census.countries.israel.cbs_commute.loader

Israel Census 2022: main means of transport to work, per sub-quarter (tat-rova) of the large cities and per locality elsewhere.

The CBS publishes the census public-use microdata file (PUF) but no mode-to-work table below the locality; the weighted PUF tabulation per sub-quarter, with its polygons, is published as GeoJSON inside https://mulysan.github.io/html/transport_mode_israel.html (one feature per city / quarter / sub-quarter, 2008 and 2022 censuses). This loader downloads that page once (13.5 MB) into <cache>/israel/cbs_commute/, takes the 2022 collection and keeps, for every locality, its finest level (sub-quarter, else quarter, else the locality), so the units tile the country without overlap. Counts = weighted workers (n22) x the published percentage.

from pycensus.census.countries.israel import cbs_commute
gdf = cbs_commute.load(aoi=aoi)          # GEOID, level, locality code, name, geometry, commuter counts

national(cache_dir=None)

Every unit of the country (finest level per locality), cached as parquet.

Parameters:

Name Type Description Default
cache_dir Optional[str]

Cache folder; None = the pycensus cache.

None

Returns:

Type Description
GeoDataFrame

GeoDataFrame of every unit.

load(aoi=None, level='commute_area', cache_dir=None, **_)

Commute modes of the 2022 census by statistical sub-quarter / locality, inside aoi.

Parameters:

Name Type Description Default
aoi Optional[GeoDataFrame]

Area of interest (GeoDataFrame).

None
level str

Only "commute_area".

'commute_area'
cache_dir Optional[str]

Cache folder; None = the pycensus cache.

None
**_

Ignored.

{}

Returns:

Type Description
GeoDataFrame

GeoDataFrame with global column names.

Raises:

Type Description
NotImplementedError

For another level.