Skip to content

pycensus.census.countries.germany.destatis.custom_fields

Custom fields for Destatis (Statistisches Bundesamt) that require mathematical operations.

Technical aspects

Only :func:compute_population_density is kept -- every other derived field in the earlier version of this module (dependency ratio, foreign population share, household size, sex ratio, ageing index, ...) depended on base columns (households, populationForeign, ...) that were removed from :mod:pycensus.germany.destatis.schema for being fabricated, unverified GENESIS codes -- see that module's docstring. Add these back once their base columns are real and verified.

compute_population_density(population, area)

Compute population density (people per square kilometer).

Parameters:

Name Type Description Default
population Series

Total population (Bevoelkerung).

required
area Series

Area in square kilometers.

required

Returns:

Type Description
Series

Population density (people per km²).