๐Ÿš– NYC Taxi Payment Analysis

Architect is a theme for GitHub Pages.

View project on GitHub

๐Ÿงญ Project Overview

This project explores how payment type (Card vs Cash) impacts taxi fares and trip characteristics in New York City.
It provides data-driven insights to help drivers and companies maximize revenue by understanding passenger behavior and fare patterns.


๐ŸŽฏ Objective

To determine whether payment method affects the total fare amount and trip distance, and to recommend strategies that improve driver earnings and overall operational efficiency.


โš™ Tools & Technologies

  • Programming Language: Python
  • Libraries: Pandas, NumPy, Matplotlib, Seaborn, SciPy, Statsmodels
  • Environment: Jupyter Notebook
  • Reporting Tools: PowerPoint, PDF

๐Ÿ“Š Dataset Details

Source: NYC Taxi Trip Records
Columns Used:
passenger_count, payment_type, fare_amount, trip_distance, pickup_datetime, dropoff_datetime


๐Ÿงฉ Project Workflow

  1. Data Cleaning โ€“ Removed missing, duplicate, and invalid records
  2. Exploratory Data Analysis (EDA) โ€“ Analyzed trip and fare distributions by payment type
  3. Statistical Testing (t-Test) โ€“ Checked whether fare differences between payment types are statistically significant
  4. Regression Analysis โ€“ Modeled fare as a function of trip distance and payment type
  5. Visualization โ€“ Created comparative charts for insights
  6. Reporting โ€“ Summarized results with visuals and business recommendations

๐Ÿ” Key Insights

Comparison of Card vs Cash payments in NYC Taxi:

Metric Card Cash
Payment Share 67.5% 32.5%
Average Fare (USD) 13.7 12.25
Average Distance (mi) 3.23 2.80

Insights:

  • Card payments are more frequent and yield higher fares.
  • t-Test Result: Statistically significant difference โ†’ payment type impacts fare.
  • Drivers earn ~12% higher revenue per trip with card payments.

๐Ÿ’ก Business Recommendations

  • Offer rewards or incentives to encourage card payments
  • Educate drivers on higher earnings potential via card transactions
  • Simplify cashless payment process in the app for better adoption
  • Track payment-type trends using dashboards or BI tools

๐Ÿง  Learnings

  • Applied EDA, hypothesis testing, and regression modeling on real-world data
  • Learned to convert raw data into actionable business insights
  • Improved data visualization, interpretation, and communication skills
  • Gained hands-on experience in end-to-end data analysis workflow

๐Ÿ“˜ Project Impact

  • Discovered that payment type significantly affects fare amount and trip behavior
  • Provided actionable recommendations for increasing driver revenue
  • Delivered insights in a clean, reproducible, and business-focused format
  • Demonstrated practical ability to combine data analytics with business understanding

๐Ÿ“‚ Supporting Files

For reference and verification


๐Ÿ‘ฉโ€๐Ÿ’ป Author

Swati Mirashi
๐Ÿ“ง swatimirashi298@gmail.com
๐Ÿ”— LinkedIn | GitHub


โญ If you found this project insightful, give it a star!