Skip to content

πŸ“Š Django Backend for analysing and viz. filtered taxi trip data from any city, ready for ML integration πŸ‘€

Notifications You must be signed in to change notification settings

VIDA-NYU/Taxis-Vis-Data-Backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Taxis Vis Icon

Taxis Vis

πŸ“Š Data Analysis Backend (Django + Pandas)

Django Pandas Python Version


Warning

🚨 Important Notice: This current repository and the Taxis-Vis-Frontend are put on hold. The goal was to see what is possible to do with today tools on the Javascript end side coupled with Python backend for reproducing Taxis-VIS. Now it touches enough yet is not deleted because could be (re-)used. Cheers! @Simon.

πŸš€ Overview

The Data Analysis Backend is a Django + Pandas service that performs analytics on taxi trip data.
Once the Taxis Vis Frontend filters taxi trips, it sends a subset of trips here for statistical and **graphical ** analysis,
including histograms, box plots, scatter plots, and time-series visualizations, to name a few.

Note

The Geospatial backend is no longer needed since DuckDB-WASM handles spatial queries directly in the frontend.
This backend is strictly for data analysis & visualizationβ€”not spatial filtering.


πŸ“¦ Installation & Setup

πŸ”§ Prerequisites

  • Python (>=3.8)
  • Django (installed via uv or pip)
  • (Recommended) UV for seamless virtual environment management
  • Pandas (for handling data operations)

πŸ› οΈ Steps to Set Up

1️⃣ Clone this repository:

git clone https://github.com/VIDA-NYU/Taxis-Vis-Data-Backend.git
cd Taxis-Vis-Data-Backend

2️⃣ Install dependencies using UV:

uv lock
uv sync

3️⃣ Run the Django server:

# With UV (recommended)
uv run python manage.py runserver

# Or manually if using pip/venv (though make sure to be in the correct environment)
python manage.py runserver

πŸ’‘ By default, the backend runs on http://127.0.0.1:8000.


πŸ“Š How It Works: Data Flow

1️⃣ User applies filters in the Frontend (Taxis Vis UI).
2️⃣ Frontend sends a filtered subset of trips (CSV) to this Django backend.
3️⃣ Django processes the CSV using Pandas and generates Plotly-compatible JSON for visualization.
4️⃣ Frontend receives the JSON and renders the requested charts dynamically.


πŸ“– Further Reading & Resources


Happy Analysing!
The Taxis Vis Team πŸš€

About

πŸ“Š Django Backend for analysing and viz. filtered taxi trip data from any city, ready for ML integration πŸ‘€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages