Julian Metias
All projects
NZ traffic crash pipeline

NZ traffic crash pipeline

Python · PostgreSQL · dbt · Airflow · Docker Compose · GitHub Actions · Power BI
View repository ↗

Loads New Zealand crash records and regional climate data, models them in dbt, and serves a Power BI report.

What it does

  • Staging model casts and renames every source column; the mart adds casualty totals, road type by speed limit and flags for fatal and vulnerable-road-user crashes.
  • Five custom singular dbt tests.
  • Climate data joins at region and year, the finest grain the open data supports.

Known limitation: About 3,000 rows have no region in the source. The mart labels them “Unknown” and the gap is documented.

Screenshots

7