runtime
All projects

High-Performance Taxi Trip Processor

Add up the same taxi trips two ways and check that both totals match.

The project

Three trips, with fares 10, 4 and 6. You'll copy them into a Parquet file, add the fares with pandas, add them again with DuckDB, and check that both totals are 20. The check says they agree. It does not say which tool is faster.

The steps

Your files

  • trips.py you write this
  • main.py you write this
  • data/trips.csv 3 rows
High-Performance Taxi Trip Processor — Python project · Runtime