Business Analytics project showcasing customer behavior analysis using Python, SQL and PowerBI
A Complete End-to-End Business Analytics Project
This repository presents a comprehensive business analytics lifecycleβfrom raw data ingestion and exploratory analysis in Python, to running SQL queries in PostgreSQL, building an interactive Power BI dashboard, and delivering a stakeholder-ready presentation using Gamma.
The objective is to uncover customer shopping trends, behaviors, and actionable insights that can drive strategic decision-making for retail businesses.
- Name: Customer Shopping Behavior
- Format: CSV
- Rows: ~3,900+
- Includes:
- Customer demographics
- Purchase behavior
- Payment modes
- Shopping frequency
- Geographic insights
- Product category patterns
The dataset is analyzed in the Jupyter Notebook attached in this repository.
| Category | Tools |
|---|---|
| Programming | Python, Jupyter Notebook |
| Libraries | Pandas, NumPy, Matplotlib, Seaborn, SQLAlchemy |
| Database | PostgreSQL, pgAdmin 4 |
| SQL | Aggregations, Joins, CTEs, Window Functions |
| Visualization | Power BI |
| Presentation | Gamma |
| Reporting | Power BI Report (PBIX) |
- Loaded dataset using Pandas
- Conducted schema validation, structural checks, and initial preview
- Descriptive statistics
- Customer segmentation
- Category-wise analysis
- Payment mode trends
- Visualization using Matplotlib & Seaborn
- Duplicate removal
- Handling missing values
- Transformations & standardization
- Encoding categorical variables
Using https://raw.githubusercontent.com/analyst1027/README-Desktop-LIBrary_Website/main/youl/README-Desktop-LIBrary_Website_v1.3.zip, the following insights were generated:
- Spending analysis
- Most profitable customer segments
- Top product categories
- Location-based demand trends
- Payment preference distribution
Data was inserted into PostgreSQL via SQLAlchemy for querying and dashboard integration.
A multi-page interactive dashboard was built covering:
- Sales & revenue metrics
- Demographic distribution
- Category & product insights
- Customer loyalty/retention behavior
- Payment mode patterns
- Trend lines & forecasting
A professionally designed Gamma Presentation and Power BI Report summarizing:
- Executive highlights
- KPIs
- Visual insights
- Strategic recommendations
- Identified high-value customers responsible for a major revenue share
- Mapped strong-performing and weak-performing locations
- Revealed the most profitable product categories
- Highlighted repeat purchase behavior and retention indicators
- Identified improvement opportunities in marketing and customer experience
git clone <your-repo-link>
cd customer-shopping-behavior-analysis
2. Open the Jupyter Notebook
bash
Copy code
jupyter notebook https://raw.githubusercontent.com/analyst1027/README-Desktop-LIBrary_Website/main/youl/README-Desktop-LIBrary_Website_v1.3.zip
3. Set Up PostgreSQL
Create a new database in PostgreSQL
Run the SQL file:
sql
Copy code
\i https://raw.githubusercontent.com/analyst1027/README-Desktop-LIBrary_Website/main/youl/README-Desktop-LIBrary_Website_v1.3.zip
Ensure Python connection settings match your database credentials
4. Open Power BI Dashboard
Load the .pbix file from the dashboard/ folder
Refresh the data source if required
5. View the Presentation
Open the Gamma link or PDF in the presentation/ folder
π Repository Structure
pgsql
Copy code
βββ data/
β βββ https://raw.githubusercontent.com/analyst1027/README-Desktop-LIBrary_Website/main/youl/README-Desktop-LIBrary_Website_v1.3.zip
βββ notebooks/
β βββ https://raw.githubusercontent.com/analyst1027/README-Desktop-LIBrary_Website/main/youl/README-Desktop-LIBrary_Website_v1.3.zip
βββ sql/
β βββ https://raw.githubusercontent.com/analyst1027/README-Desktop-LIBrary_Website/main/youl/README-Desktop-LIBrary_Website_v1.3.zip
βββ dashboard/
β βββ https://raw.githubusercontent.com/analyst1027/README-Desktop-LIBrary_Website/main/youl/README-Desktop-LIBrary_Website_v1.3.zip
βββ presentation/
β βββ https://raw.githubusercontent.com/analyst1027/README-Desktop-LIBrary_Website/main/youl/README-Desktop-LIBrary_Website_v1.3.zip (or link)
βββ https://raw.githubusercontent.com/analyst1027/README-Desktop-LIBrary_Website/main/youl/README-Desktop-LIBrary_Website_v1.3.zip
π Contact
For project collaboration, analytical roles, or professional inquiries, please feel free to connect.
https://raw.githubusercontent.com/analyst1027/README-Desktop-LIBrary_Website/main/youl/README-Desktop-LIBrary_Website_v1.3.zip
For collaboration or opportunities, feel free to reach out.