metadata
title: SF Taxi Mobility Equity Dashboard
emoji: π
colorFrom: blue
colorTo: yellow
sdk: docker
app_port: 7860
pinned: true
SF Taxi Mobility Equity Dashboard
An interactive Plotly Dash dashboard analyzing spatial equity in San Francisco taxi services. Compares Street-Hail vs App-Based trip patterns across SF's 41 Analysis Neighborhoods and evaluates service representation relative to demographic baselines using Representative Ratios.
Debayan Mandal
Features
- Interactive choropleth maps β click any neighborhood to cross-filter all views
- Representative Ratio visualizations β bar chart and heatmap showing the central equity metric (overrepresentation vs underrepresentation by demographic group)
- Neighborhood detail panel β click to see full profile: trips, demographics, deviations, and trends
- Monthly comparison β side-by-side difference maps revealing temporal trends
- Dynamic narrative β auto-generated equity insights that update with your selections
- CSV data export β download filtered trip + demographic data
- Publication-ready image export β high-resolution PNG via the camera icon on each map
- Guided tour β step-by-step walkthrough for non-technical audiences
- Colorblind-safe palettes β Viridis, Cividis, and RdBu scales
Data Sources
- SF Taxi Trips: DataSF Taxi Trips (m8hk-2ipk)
- SF Analysis Neighborhoods: DataSF Analysis Neighborhoods (j2bu-swwd)
- Census Demographics: ACS 5-Year 2022, Table B02001, Block Groups for SF County (FIPS 06075)
- Block Group Geometries: TIGER/Line 2022
Local Setup
pip install -r requirements.txt
python data_pipeline.py # builds sf_dashboard.db
python app.py # opens dashboard at http://localhost:7860
Docker
docker build -t sf-taxi-dashboard .
docker run -p 7860:7860 sf-taxi-dashboard
Then open http://localhost:7860.
Architecture
| File | Purpose |
|---|---|
data_pipeline.py |
Downloads taxi trips, neighborhoods, and census data; builds sf_dashboard.db |
dashboard_helpers.py |
Plotly figure builders and data query helpers |
app.py |
Plotly Dash application layout and callbacks |
assets/styles.css |
Custom CSS |
requirements.txt |
Python dependencies |
Dockerfile |
Containerization for Hugging Face Spaces |