pycensus.census.countries.germany.ba_pendler.loader¶
Loader for BA (Bundesagentur fuer Arbeit) Pendlerstatistik (commuter statistics) by Gemeinde.
Technical aspects
Real, keyless, single-file national bulk download (verified live
2026-08-25): BA's "Gemeindedaten aus der Beschaeftigungsstatistik"
report, found via
https://statistik.arbeitsagentur.de/DE/Navigation/Footer/Top-Produkte/
Gemeindedaten-sozialversicherungspflichtig-Beschaeftigter-Nav.html ->
the report search filtered to topic_f=beschaeftigung-sozbe-gemband.
Unlike :mod:..ba (AMK, one zip per Kreis), this product is a single
national workbook per period:
https://statistik.arbeitsagentur.de/Statistikdaten/Detail/{period}/
iiia6/beschaeftigung-sozbe-gemband/gemband-dlk-0-{period}-xlsx.xlsx.
requests.get with no special headers/params returns it directly
(200, verified live).
The 'Gemeindedaten' sheet (11,836 rows for period 202506) is a real
Wohnort/Arbeitsort/Pendler cross-tab: every row's first column ('Schl.
Nr.') is either an 8-digit Gemeinde AGS (GISCO's LAU_ID, same
convention as ..ba) or a shorter 2/5-digit Land/Kreis aggregate
AGS also present in the same sheet -- filtered to 8-digit rows only,
see :func:_parse_gemeindedaten.
Real column layout (verified live against the workbook's merged
header rows 4-7, see germany/schema/ba_pendler_schema.json for the
full live-verification note and cross-checks against Hamburg and
Pinneberg):
col C -- Wohnort (residentWorkers)
col K -- Arbeitsort (pendlerJobsAtWorkplace; matches ..ba's
AMK jobsTotal exactly for Hamburg, same Stichtag)
col L -- Wohnort gleich Arbeitsort (sameGemeindeWorkers)
col M -- Einpendler (einpendler)
col N -- Auspendler (auspendler)
Columns D-J (sex/nationality/age breakdown of Wohnort) and O (Zahl der
Betriebe) are present in the real workbook but not wired here -- add a
row-field + schema feature if wanted later.
District-level totals are a real spatial aggregation of the real
Gemeinde rows (same representative-point-in-NUTS3-polygon approach as
..ba's district branch), not a second fetch.
Source
https://statistik.arbeitsagentur.de/DE/Navigation/Footer/Top-Produkte/Gemeindedaten-sozialversicherungspflichtig-Beschaeftigter-Nav.html
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 |
None
|
|
regions
|
German state name(s)/abbreviation(s)/code(s). Derived
from |
None
|
|
level
|
str
|
Standard geometry level. |
'municipality'
|
year
|
Vintage year present in the workbook's period, or
|
'latest'
|
|
cache_dir
|
Root of pyCensus' parquet cache. |
None
|
|
cache
|
bool
|
If |
True
|
data_dir
|
Optional[str]
|
Root directory for the raw workbook download cache. |
None
|
Returns:
| Type | Description |
|---|---|
GeoDataFrame
|
GeoDataFrame with |
GeoDataFrame
|
|
GeoDataFrame
|
sameGemeindeWorkers, einpendler, auspendler). |