pycensus.census.countries.israel.constants¶
Static Israel geography reference data shared by every Israel census source.
Technical aspects
Boundary files for Israel will be fetched from CBS's geographic data. This module maps logical level names to the functions that fetch them, the geography hierarchy, and configuration for data loading.
Israel's administrative divisions: - Nation (country level) - District (mehoz) - 6 main districts + Judea and Samaria area - Sub-district (nafa) - within districts - Locality/City (ir/моаца) - municipalities, local councils, cities - Statistical Area (area statistit) - for census purposes - Street - Building Block
Source
https://www.cbs.gov.il/
district_code(district_name_or_abbr)
¶
Return the 1-digit CBS code for a district name, abbreviation, or code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
district_name_or_abbr
|
str
|
District name, abbreviation, or 1-digit code. |
required |
Returns:
| Type | Description |
|---|---|
str
|
One-digit CBS district code. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the input does not resolve to a known Israel district. |
district_abbr(district_name_or_code)
¶
Return the abbreviation for a district name or code.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
district_name_or_code
|
str
|
District name or 1-digit code. |
required |
Returns:
| Type | Description |
|---|---|
str
|
Abbreviation for the district. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the input does not resolve to a known Israel district. |