This commit is contained in:
Andras Schmelczer 2026-07-03 18:39:34 +01:00
parent 1ee796b282
commit ab688243d7
36 changed files with 307 additions and 135 deletions

View file

@ -10,13 +10,13 @@ rather than a single headline number.
We give the ONS bands colloquial labels (the census's "Level 1/2/3/4+" jargon
means little to a homebuyer): No qualifications / Some GCSEs / Good GCSEs /
Apprenticeship / A-levels / Degree or higher / Other qualifications. NOTE the
census does NOT split undergraduate from postgraduate "Level 4 and above" is a
census does NOT split undergraduate from postgraduate. "Level 4 and above" is a
single bucket ("Degree or higher").
The join key downstream (merge.py) is `lsoa21`, the same key used for ethnicity,
median age, and IoD.
Source: NOMIS (ONS Census 2021 TS067 dataset, NM_2084_1)
Source: NOMIS (ONS Census 2021, TS067 dataset, NM_2084_1)
License: Open Government Licence v3.0
"""
@ -42,7 +42,7 @@ BASE_URL = (
)
# Map each canonical NOMIS C2021_HIQUAL_8 band to our colloquial output bucket.
# 1:1 mapping (no folding) keyed on the exact NOMIS label so a relabelled or
# 1:1 mapping (no folding): keyed on the exact NOMIS label so a relabelled or
# missing band fails loudly in validation instead of silently dropping people.
BAND_MAP = {
"No qualifications": "No qualifications",