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.
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
- β 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
- π 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
git clone https://github.com/your-username/retail-analytics-project.git
cd retail-analytics-project
pip install -r requirements.txtUse Jupyter or VS Code to run:
01_eda.ipynb02_churn_model.ipynb
Output: outputs/customer_churn_segments.csv
- File:
retail_dashboard.pbix - Make sure
customer_churn_segments.csvis loaded as a table
- Python: Pandas, Scikit-learn, Matplotlib, Seaborn
- Machine Learning: Random Forest, KMeans
- Power BI: Visual Analytics, DAX, Transform Data
- π Analyze churn risk by demographics and behavior
- π― Segment customers for targeted marketing
- π Present business-ready dashboards to stakeholders
This project is for educational and portfolio use.
Rahul Ghantasala
Passionate about solving real-world problems with data. Letβs connect on LinkedIn or check out more projects on GitHub.