pycensus.census.countries.israel.cbs.custom_fields¶
Custom derived fields for CBS Israel Census data.
Note
These are generic formulas that only depend on fields actually present
in :mod:pycensus.israel.cbs.schema (population, households) --
kept as convenience helpers even though CBS's own pop_density and
size_avg fields already cover the same ground natively (schema.json
fields populationDensity/householdSizeMean). Earlier versions of
this module defined formulas over fabricated fields (Jewish/Arab share,
immigration decade breakdowns, fertility rate, etc.) that do not exist
in the real CBS locality dataset wired up in cbs/schema.json -- those
were removed rather than kept as dead code referencing non-existent columns.
compute_population_density(population, area)
¶
Compute population density (people per square kilometer).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
population
|
Series
|
Total population. |
required |
area
|
Series
|
Area in square kilometers. |
required |
Returns:
| Type | Description |
|---|---|
Series
|
Population density (people per km²). |
compute_household_size(total_population, households)
¶
Compute average household size.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
total_population
|
Series
|
Total population. |
required |
households
|
Series
|
Number of households. |
required |
Returns:
| Type | Description |
|---|---|
Series
|
Average household size. |