Blog · 21 November 2026 · 2 min read

Five seasons of Helsinki city bikes: what the data says, and what it took to trust it

12.5 million valid trips, one in eight raw rows a duplicate, and a check against the operator's own totals. Notes from building the Helsinki city bike pipeline.

Project: Helsinki City Bikes · live dashboard


I wanted one question answered: how do weather, holidays and the calendar shape city bike use in Helsinki and Espoo? The answer turned out to be the easy part. Getting numbers I could stand behind took most of the work.

You can explore everything in this post yourself in the live dashboard. It runs on DuckDB inside your browser.

The pipeline in one paragraph

Monthly HSL trip files and daily FMI weather are downloaded and normalised in Python, then loaded into Snowflake with COPY INTO. Snowflake remembers which files it has loaded, so re-running a month never duplicates rows. dbt turns the raw tables into trip facts, station and date dimensions, and daily, hourly and station aggregates. Those aggregates are what the dashboard reads.

One in eight raw rows was a duplicate

The raw files contain trips that appear more than once. Across 2021 to 2025, 1,897,685 rows (12.8%) were duplicates. If I had loaded the files as they are, every number downstream would have been too high.

I did not want to drop anything silently, so every raw row gets a quality label instead:

Label Share of raw rows
valid 84.4%
duplicate_removed 12.8%
too_short_distance 2.0%
too_short_time 0.5%
too_long 0.3%

Labelling instead of deleting means I can always answer "where did those rows go?"

Checking against someone else's number

A pipeline can be internally consistent and still wrong. So I compared my valid trips with the totals the operator publishes in its annual report:

Year My valid trips Official Match
2023 2,470,003 2,500,000 98.8%
2024 2,503,876 2,600,000 96.3%

The official figures are rounded to 0.1 million and may count a slightly different scope, so I don't expect 100%. But a result in the high nineties tells me the deduplication and filters are doing roughly the right thing. A result of 115% would have told me they were not.

What the data says

  • Weather matters most. Days of 20 °C and above average around three times as many trips as days below 5 °C.
  • Rain cuts use by about a fifth. Rainy days average about 9,500 trips, against about 11,700 across all days.
  • Workdays have two peaks. One around 8 in the morning and a bigger one in the late afternoon. Weekends have a single, flat curve in the middle of the day.
  • The busiest station over the five seasons is Itämerentori.

What I would do differently

I would add the reconciliation check to CI from day one, not at the end. It was the single most useful test in the project, and it is cheap to run.

The code is on GitHub.

Portrait of Samwel Munyingi

Hi, I'm Samwel.

I'm a data engineer in Helsinki with a background in applied computer science. I build end-to-end pipelines on real open data, write about what breaks along the way, and teach data engineering for free.