Skip to content

SpikyKat/retail-analytics-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›οΈ Retail Customer Analytics Project

This project is an end-to-end analytics solution that uncovers deep insights into customer behavior, churn risk, and marketing performance for a retail business. It combines powerful data analysis in Python with a dynamic Power BI dashboard, making it perfect for data storytelling, stakeholder reporting, and portfolio display.


πŸ“ Folder Structure

retail_analytics_project/
β”œβ”€β”€ data/                      # Raw and processed data files
β”œβ”€β”€ notebooks/                # Python notebooks for EDA, ML
β”‚   β”œβ”€β”€ 01_eda.ipynb
β”‚   β”œβ”€β”€ 02_churn_model.ipynb
β”‚   └── 03_customer_segmentation.ipynb
β”œβ”€β”€ retail_dashboard.pbix     # Power BI dashboard file
β”œβ”€β”€ requirements.txt          # Python dependencies
└── README.md                 # Project documentation

πŸ“Š Features

Python (Jupyter Notebooks)

  • βœ… EDA: Income, Age, Spending, Recency trends
  • βœ… Feature Engineering: Customer tenure, total spend, total purchases
  • βœ… Customer Segmentation: KMeans clustering into behavioral groups
  • βœ… Churn Prediction: Random Forest model + Partial Dependence Plots
  • βœ… Export to CSV for BI tools

Power BI Dashboard

  • πŸ“Œ Multi-tab layout:
    • Overview: KPIs, churn rate, customer count
    • Customer Segmentation: Avg spend, segment size, age distribution
    • Churn Analysis: Risk trends by tenure, income, complaints
    • Campaign Effectiveness: Response rates and behavior
  • πŸŽ›οΈ Interactive slicers by segment, churn status, demographics
  • πŸ“ˆ Visual storytelling for business decisions

πŸ“¦ Setup & Run

πŸ”§ 1. Clone Repo & Install Requirements

git clone https://github.com/your-username/retail-analytics-project.git
cd retail-analytics-project
pip install -r requirements.txt

πŸ’‘ 2. Run Python Notebooks

Use Jupyter or VS Code to run:

  • 01_eda.ipynb
  • 02_churn_model.ipynb

Output: outputs/customer_churn_segments.csv

πŸ“ˆ 3. Open Power BI Dashboard

  • File: retail_dashboard.pbix
  • Make sure customer_churn_segments.csv is loaded as a table

πŸ“š Tech Stack

  • Python: Pandas, Scikit-learn, Matplotlib, Seaborn
  • Machine Learning: Random Forest, KMeans
  • Power BI: Visual Analytics, DAX, Transform Data

🧠 Use Cases

  • πŸ” Analyze churn risk by demographics and behavior
  • 🎯 Segment customers for targeted marketing
  • πŸ“Š Present business-ready dashboards to stakeholders

πŸ“Œ License

This project is for educational and portfolio use.


πŸ™‹β€β™‚οΈ Author

Rahul Ghantasala
Passionate about solving real-world problems with data. Let’s connect on LinkedIn or check out more projects on GitHub.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published