Sitemap
TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Member-only story

Interactive NYC Taxi Data Visualization with Bokeh & Streamlit (Part 2)

8 min readJun 18, 2024

--

Press enter or click to view image in full size
Animated pickup and dropoff points for NYC yellow taxi trips across Jan to June of 2016. The left chart shows pickup points from the JFK airport zone, and the right chart shows the corresponding drop off points for the trips shown on the left chart. The animation runs for 0 to 23 hours, and the color shows the trip duration (in minutes) for that hour averaged across 6 months. (Image by author)

Check out part 1 of this blog post series Kickstart Your ML Journey: Scoping, Structuring, and Exploring Data (Part 1) to understand the data and the business problem we are trying to solve.

Items covered in this post:

  • Adding geo map features to the NYC taxi trip dataset
  • Creating an interactive plot using Bokeh
  • Deploying the bokeh plots to streamlit (https://nyc-taxi-trip-pp.streamlit.app/) — NOTE: use dark theme

Github link: Source code for this post

For this particular post, we are covering the following two topics of the business problem:

  1. Identify the movement of people (in taxis) across the NY city at different hours of the day.
  2. Identify the demand for taxi at different times in different parts of the city (where are the hot spots?).

As part of this, we will create an interactive visualization, with two options, which show:

  1. Scatter plot: Each trip…

--

--

Pratha Pawar
Pratha Pawar

Written by Pratha Pawar

Data Scientist with strong passion for solving critical real-world problems. You can connect with me at https://www.linkedin.com/in/prathamesh-pratha-pawar-0a28

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.