NYC Taxi — Hourly Zone Heatmap
NYC Taxi benchmark · all NYC Taxi queries
Trip density by hour and zone
Representative SQL
Rendered in the benchmark’s native SQL with default parameters (no dialect translation available).
SELECT EXTRACT(HOUR FROM pickup_datetime) AS hour, pickup_location_id, COUNT(*) AS trip_countFROM tripsWHERE pickup_datetime >= '2019-11-05' AND pickup_datetime < '2019-11-12'GROUP BY EXTRACT(HOUR FROM pickup_datetime), pickup_location_idORDER BY hour, trip_count DESCRepresentative DataFrame
No DataFrame implementation is registered for this query.
Get the exact query for your run
The blocks above are representative. To get the precise statement a specific platform runs at a specific scale, substitute your own values:
from benchbox import NYCTaxi
bench = NYCTaxi(scale_factor=1.0) # your scale factorqueries = bench.get_queries(dialect="datafusion") # your platform's dialect; drop dialect= for native SQLprint(queries['hourly-zone-heatmap'])Source
Query text: benchbox/core/nyctaxi/queries.py