NYC Taxi
Million-row taxi trip analysis with pickup/dropoff maps and fare distribution.

Features
- Large dataset handling - Efficiently processes millions of taxi trips
- Geographic maps - Pickup and dropoff locations
- Fare analysis - Distribution of trip costs
- Time filtering - Filter by pickup time
YAML Specification
| nyc_taxi.yaml |
|---|
| config:
title: "NYC Taxi Trips"
sources:
nyc_taxi:
type: duckdb
shared: true
uri: ":memory:"
tables:
nyc_taxi: "read_parquet('s3://datasets.holoviz.org/nyc_taxi/v2/nyc_taxi_wide.parq')"
initializers:
- "INSTALL httpfs;"
- "LOAD httpfs;"
layouts:
- title: Trip Data
source: nyc_taxi
views:
- table: nyc_taxi
type: hvplot
kind: points
x: pickup_x
y: pickup_y
tiles: EsriStreet
rasterize: true
cnorm: eq_hist
responsive: true
height: 500
colorbar: false
selection_group: taxi
xaxis: null
yaxis: null
- table: nyc_taxi
type: hvplot
kind: points
x: dropoff_x
y: dropoff_y
tiles: EsriStreet
rasterize: true
cnorm: eq_hist
responsive: true
height: 500
colorbar: false
selection_group: taxi
xaxis: null
yaxis: null
- table: nyc_taxi
type: hvplot
kind: hist
y: trip_distance
bin_range: [0, 20]
height: 300
responsive: true
selection_group: taxi
- table: nyc_taxi
type: hvplot
kind: hist
y: tip_amount
bin_range: [0, 20]
height: 300
responsive: true
selection_group: taxi
- table: nyc_taxi
type: hvplot
kind: hist
y: fare_amount
bin_range: [0, 50]
height: 300
responsive: true
selection_group: taxi
sizing_mode: stretch_both
layout: [[0, 1], [2, 3, 4]]
|
Run this example
Save the YAML above as nyc_taxi.yaml and run:
lumen serve nyc_taxi.yaml --show
Download YAML