Skip to content

pycensus.census.countries.israel.cbs

Israel Census 2022 (Census of Population and Housing) source.

Importing this module registers the gdf.cbs GeoDataFrame accessor (see :mod:pycensus.accessors). Use :func:load to fetch data.

Technical aspects

Real, live, unauthenticated data from CBS's own hosted ArcGIS FeatureServer layers -- see :mod:pycensus.israel.cbs.loader and :mod:pycensus.israel.constants for the verified URLs and fields.

Source

https://services8.arcgis.com/JcXY3lLZni6BK4El/arcgis/rest/services/

load(aoi=None, localities=None, regions=None, level='locality', year='latest', api_key=None, cache_dir=None, cache=True, data_dir=None)

Load CBS Census 2022 locality-level data as a common-schema GeoDataFrame.

Parameters:

Name Type Description Default
aoi Optional[GeoDataFrame]

Area of interest. Used to auto-detect which localities to load if localities/regions isn't given, and to clip the final result.

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

Locality name(s) or CBS/LAMAS code(s) to load (see :func:pycensus.israel.utils.locality_code). Derived from aoi if omitted (aoi is then required).

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

Alias for localities, kept for interface parity with other pyCensus sources.

None
level str

Standard geometry level name. "locality" and "statistical_area" have real attribute sources wired up (see module docstring); anything else raises.

'locality'
year Union[int, str]

Vintage year, or "latest". Only 2022 is available.

'latest'
api_key Optional[str]

Not used -- every source wired up here is public and unauthenticated (verified 2026-08-19).

None
cache_dir Optional[str]

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

None
cache bool

If False, bypass the cache entirely -- always fetch fresh and don't persist the result.

True
data_dir Optional[str]

Not used (kept for interface parity).

None

Returns:

Type Description
GeoDataFrame

GeoDataFrame with GEOID, geometry, and one cbs_-prefixed

GeoDataFrame

column per logical column in :data:pycensus.israel.cbs.schema.SCHEMA.

Raises:

Type Description
ValueError

If neither localities/regions nor aoi is given, or level resolves to something outside :data:IMPLEMENTED_LEVELS.