Small changes

This commit is contained in:
Andras Schmelczer 2026-03-12 22:11:33 +00:00
parent eae78df3ca
commit 593f380581
7 changed files with 48 additions and 48 deletions

View file

@ -209,7 +209,7 @@ def _build(
# Broadband: derive max available download speed tier per postcode from
# Ofcom availability percentages. Tiers: Gigabit ≥1000, UFBB ≥300,
# UFBB(100) ≥100, SFBB ≥30 Mbps.
# UFBB(100) ≥100, SFBB ≥30 Mbps. Stored as string enum.
broadband = (
pl.scan_parquet(broadband_path)
.select(
@ -228,6 +228,7 @@ def _build(
)
.group_by("bb_postcode")
.agg(pl.col("max_download_speed").max())
.with_columns(pl.col("max_download_speed").cast(pl.Utf8))
)
wide = wide.join(broadband, left_on="postcode", right_on="bb_postcode", how="left")