Python + pandas + CLI App | Udacity Nanodegree Project
This project explores bikeshare data from three major US cities β Chicago, New York City, and Washington β through a command-line interface (CLI) application built in Python. Users can interactively filter data by city, month, and day to uncover commuting patterns, usage behavior, and demographic trends.
To develop a Python-based CLI app that enables users to explore real-world bikeshare data, applying data wrangling and filtering techniques to extract insights on how and when people use the service.
- π Language: Python 3
- π¦ Libraries: pandas, numpy, time
- π§Ή Techniques: Data wrangling, datetime filtering, CLI interaction
- π» Skills Applied: Exploratory data analysis (EDA), user input validation, programmatic reporting
This project uses bikeshare usage data provided by Udacity for:
- Chicago:
chicago.csv - New York City:
new_york_city.csv - Washington:
washington.csv
Each file contains details about individual trips made in the bikeshare system, including timestamps, trip duration, station locations, and user demographics.
β οΈ Note: The datasets are not included in this repository due to size limitations and licensing. You can obtain them from Udacity's course materials or request them from official sources.
bikeshare-analysis/
βββ bikeshare.py # Main Python script (CLI app)
βββ README.md # Project overview and instructions
- π Peak usage occurs around 5β6 PM, indicating strong commuter activity.
- π Wednesdays show high trip volumes across all cities.
- π Major hubs like Columbus Circle and Union Station are frequently used.
- π₯ Younger riders dominate in cities with available birth year data.
- π§ While patterns vary slightly, weekday commuting is a strong common trend.
- π² Peak Hour Optimization: Increase bike availability between 5β7 PM, the busiest usage window.
- π€οΈ Station Planning: Add stations near the most common startβend point pairs to improve access.
- π§βπ€βπ§ Demographic Targeting: Leverage weekday vs. weekend trends to cater to commuters vs. leisure users.
These insights can help bikeshare companies and urban planners make data-informed operational and strategic decisions.
- Clone this repository or download the
bikeshare.pyfile and datasets. - Run the script in your terminal:
python bikeshare.py- Follow the prompts to explore the data interactively.
π¬ Author: Hams Saeed Alhakim π Udacity Data Analyst Nanodegree π GitHub: github.com/techwithhams π Date: 2024