NYC Green Taxi
Analyzed NYC Green Taxi ,used PowerBI and SQL to derive actionable business insights.
Introduction :
For this case study , I would be playing the role of a new Data Analyst for the New York City Taxi & Limousine Commission. It’s your first week on the job, and you just received the following email from the Lead Dispatcher:
Welcome to the team!
We’ve been collecting trip data for ~4 years now, but without a proper analyst we haven’t been able to put it to good use. That’s where you come in!
The raw data has some issues, so we’ll need to make the following adjustments and assumptions to clean and prep the data:
- Let’s stick to trips that were NOT sent via “store and forward”
- I’m only interested in street-hailed trips paid by card or cash, with a standard rate
- We can remove any trips with dates before 2017 or after 2020, along with any trips with pickups or drop-offs into unknown zones
- Let’s assume any trips with no recorded passengers had 1 passenger
- If a pickup date/time is AFTER the drop-off date/time, let’s swap them
- We can remove trips lasting longer than a day, and any trips which show both a distance and fare amount of 0
- If you notice any records where the fare, taxes, and surcharges are ALL negative, please make them positive
- For any trips that have a fare amount but have a trip distance of 0, calculate the distance this way: (Fare amount — 2.5) / 2.5
- For any trips that have a trip distance but have a fare amount of 0, calculate the fare amount this way: 2.5 + (trip distance x 2.5)
Once the data is cleaned up, I’m hoping you can build me a dashboard to help with weekly planning and logistics. For any given fiscal week, I’d like to be able to use historical data to answer the following questions:
- What’s the average fare trip we expect to collect?
- What’s the average distance traveled per trip?
- How do we expect trip volume to change, relative to last week?
- Which days of the week and times of the day will be busiest?
- What will likely be the most popular pick-up and drop-off locations?
I realize this is a lot to ask for, but this type of analysis will have a huge impact on our business!
Thanks in advance,
Mario Maven (Lead Dispatcher, NYC Green Taxis)
You can download the dataset from this link
Tools Used for Analysis:
- Microsoft SQL Server : The dataset exceeded the excel limit of Excel, Data Cleaning and Preparation was done in SQL
- Powerbi: Used this tool to create calculated measure and Visualization.
Data Preparation:
Here we will process data cleaning and ensuring that the correct relevant, complete and free of error and outlier when performing analysis:
- All the data preparation took place in Microsoft SQL Server .
Check out my SQL queries here
Analysis Part
- What’s the average fare trip we expect to collect?
- What’s the average distance traveled per trip?
The average distance per miles relative to last week increased by 23%
- How do we expect trip volume to change, relative to last week?
There was a difference decrease in the trip relative to last week, with the previous week having a weekly change of 10.83%
- Which days of the week and times of the day will be busiest?
The busiest day of the week are the weekdays(Monday-Friday) , from 4pm-7pm are the busiest times, which can also be attributed to Rush hour/close of work period.
- What will likely be the most popular pick-up and drop-off locations?
Below are the Top 5 drop of and Pick up Locations.
POWERBI DASHBOARD
Recommendations:
- More consideration should be take into account with the decrease in rides in 2020, dues to the Covid-19 pandemic.
- The Rush hour time, should be taken advantage off, via increase in mileage price, improvement surcharge .
- Price Adjustment should be considered for Weekends Rides.