Skip to content

pycensus.census.countries.germany.ba_pendler

BA (Bundesagentur fuer Arbeit) Pendlerstatistik (commuter statistics) source -- see loader.py.

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

Load real BA (Bundesagentur fuer Arbeit) Pendlerstatistik (commuter statistics) data.

Parameters:

Name Type Description Default
aoi

Area of interest. Used to auto-detect regions (German states) if not given, and to clip the final result.

None
regions

German state name(s)/abbreviation(s)/code(s). Derived from aoi if omitted (aoi is then required).

None
level str

Standard geometry level. "municipality" (Gemeinde, this source's real native granularity) or "district" (Kreis, a real spatial aggregation of it).

'municipality'
year

Vintage year present in the workbook's period, or "latest" (currently 2025 -- see :data:LATEST_PENDLER_PERIOD).

'latest'
cache_dir

Root of pyCensus' parquet cache.

None
cache bool

If False, bypass the cache entirely.

True
data_dir Optional[str]

Root directory for the raw workbook download cache.

None

Returns:

Type Description
GeoDataFrame

GeoDataFrame with GEOID, geometry, and the real

GeoDataFrame

ba_pendler_* columns (pendlerJobsAtWorkplace, residentWorkers,

GeoDataFrame

sameGemeindeWorkers, einpendler, auspendler).