Bike Sharing Analysis: Uncovering Urban Mobility Patterns
A comprehensive data analysis project exploring bike-sharing datasets to uncover usage patterns, seasonal trends, and the impact of weather on urban mobility.
π Project Overview
Bike Sharing Analysis is an in-depth exploratory data analysis (EDA) project aimed at understanding the dynamics of bike-sharing systems. By analyzing historical rental data, this project identifies how various factors such as weather, seasons, time of day, and user types (casual vs. registered) influence bike rental demand.
βTransforming raw urban mobility data into actionable insights for smarter, greener cities.β
π― Mission
To extract meaningful patterns from complex datasets and provide data-driven recommendations that can help bike-sharing businesses optimize their fleet distribution, pricing strategies, and operational efficiency.
β¨ Key Analytical Features & Insights
π Core Exploratory Data Analysis (EDA)
- π¦οΈ Weather Impact Analysis - How temperature, humidity, and weather conditions (clear, misty, rain/snow) dictate rental volume.
- π Seasonal Trends - Identifying peak and off-peak seasons across the year to optimize bike availability.
- π Hourly & Daily Patterns - Pinpointing rush hours and analyzing the contrast between weekday commutes and weekend leisure rides.
- π₯ User Segmentation - Comparing the behavior of Casual Users versus Registered Members.
- π Long-term Growth Tracking - Analyzing year-over-year growth in the bike-sharing ecosystem.
π Advanced Analytics
- π Correlation Mapping - Statistical relationships between environmental variables and total rentals.
- π§Ή Data Wrangling & Cleaning - Handling missing values, outlier detection, and data type formatting for accurate analysis.
- π¨ Interactive Visualization - Clear, aesthetic, and easy-to-understand charts communicating complex metrics.
- π± Dashboard Integration - A dynamic dashboard allowing users to filter data by date ranges, weather, and user type. View the Live Dashboard Here!
π οΈ Technology Stack
| Category | Technology | Purpose |
|---|---|---|
| Language | Python 3.9+ | Primary programming language |
| Environment | Jupyter Notebook | Interactive computing and EDA |
| Data Manipulation | Pandas, NumPy | Data wrangling, cleaning, and aggregation |
| Data Visualization | Matplotlib, Seaborn | Creating static and statistical charts |
| Web Dashboard | Streamlit | Deploying interactive data applications |
| Version Control | Git & GitHub | Code management and project collaboration |
ποΈ Data Analysis Lifecycle & Architecture
The Data Pipeline
1
2
3
4
5
6
7
π² Bike Sharing Analysis
βββ π₯ 1. Data Gathering (Loading raw CSV datasets)
βββ π 2. Data Assessing (Identifying missing values & outliers)
βββ π§Ή 3. Data Cleaning (Imputation, deduplication, formatting)
βββ π 4. Exploratory Data Analysis (Answering business questions)
βββ π¨ 5. Data Visualization (Creating insightful charts)
βββ π 6. Dashboard Deployment (Streamlit interactive app)
Core Analytical Modules
- Demographic Module - Focuses on user types and their specific behavioral patterns.
- Temporal Module - Analyzes data across different timeframes (hours, days, months, years).
- Environmental Module - Assesses the impact of weather situations, temperature, and wind speed.
π Installation & Setup
Prerequisites
- Python 3.9 or newer installed on your machine
- Jupyter Notebook or VS Code with Jupyter extension
- Git installed
Setup Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Clone the repository
git clone https://github.com/aipunpratama/bike-sharing-analysis.git
cd bike-sharing-analysis
# Create a virtual environment (Recommended)
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
# Install required dependencies
pip install -r requirements.txt
# Run the Jupyter Notebook for EDA
jupyter notebook
# Run the interactive Streamlit Dashboard locally
streamlit run dashboard/dashboard.py
(Atau kamu bisa langsung mengakses versi live-nya di Streamlit Cloud)
π Future Development Plans
| Phase | Feature | Timeline | Status |
|---|---|---|---|
| Phase 1 | π Comprehensive EDA & Static Visualizations | Completed | β Finished |
| Phase 2 | π Interactive Streamlit Dashboard | Completed | β Finished |
| Phase 3 | π€ Machine Learning Demand Prediction | Planned | π Planned |
| Phase 4 | πΊοΈ Geospatial Mapping (Station Locations) | Planned | π Concept |
π Project Highlights
Key Achievements
- β Actionable Insights - Successfully identified peak operational hours and critical weather impact thresholds.
- β Clean Codebase - Well-documented Jupyter Notebooks with clear markdown explanations.
- β Interactive Dashboard - Built and deployed a fully functional Streamlit dashboard.
- β Data Storytelling - Transformed millions of raw data points into a cohesive narrative about urban mobility.
π‘ Conclusion
The Bike Sharing Analysis project highlights the power of data in understanding urban mobility. By analyzing historical trends, we can conclude that bike-sharing demand is highly sensitive to weather conditions and time of day, with distinct behavioral differences between casual riders and registered members.
These insights are crucial for stakeholders looking to optimize bike redistribution across stations, launch targeted marketing campaigns for casual users, and ensure fleet readiness during peak rush hours.
π Links & Resources
Developed with β€οΈ by aipunpratama
