This commit is contained in:
Andras Schmelczer 2026-07-03 18:01:10 +01:00
parent c2070693fb
commit 909e241907
55 changed files with 594 additions and 223 deletions

View file

@ -16,7 +16,7 @@ def write_parquet(properties: list[dict], path: Path) -> None:
log.warning("No properties to write to %s", path)
return
# Sanitize bedroom/bathroom counts values above MAX_BEDROOMS are
# Sanitize bedroom/bathroom counts: values above MAX_BEDROOMS are
# almost certainly prices or other numeric fields mis-parsed as bedrooms.
bad_count = 0
for p in properties:
@ -91,7 +91,7 @@ def write_parquet(properties: list[dict], path: Path) -> None:
else:
listing_dates.append(None)
# Zero prices indicate parsing failures or POA/auction listings treat as null
# Zero prices indicate parsing failures or POA/auction listings: treat as null
asking_prices = [p["price"] if p["price"] > 0 else None for p in properties]
listing_statuses = ["For sale"] * len(properties)