society_prognosis

The central module containing all code dealing with processing and forecast Zensus data.

class EgonHouseholdPrognosis(**kwargs)[source]

Bases: sqlalchemy.orm.decl_api.Base

households
year
zensus_population_id
class EgonPopulationPrognosis(**kwargs)[source]

Bases: sqlalchemy.orm.decl_api.Base

population
year
zensus_population_id
class SocietyPrognosis(dependencies)[source]

Bases: egon.data.datasets.Dataset

name: str

The name of the Dataset

version: str

The Dataset’s version. Can be anything from a simple semantic versioning string like “2.1.3”, to a more complex string, like for example “2021-01-01.schleswig-holstein.0” for OpenStreetMap data. Note that the latter encodes the Dataset’s date, region and a sequential number in case the data changes without the date or region changing, for example due to implementation changes.

create_tables()[source]

Create table to map zensus grid and administrative districts (nuts3)

household_prognosis_per_year(prognosis_nuts3, zensus, year)[source]

Calculate household prognosis for a specitic year

zensus_household()[source]

Bring household prognosis from DemandRegio to Zensus grid

zensus_population()[source]

Bring population prognosis from DemandRegio to Zensus grid