Skip to content

Latest commit

Β 

History

History
167 lines (98 loc) Β· 3.76 KB

File metadata and controls

167 lines (98 loc) Β· 3.76 KB

Customer-churn-analysis

Customer Churn Analysis using Python & Power BI πŸ“Š Customer Churn Analysis – Python & Power BI πŸ” An end-to-end data analysis and business intelligence project exploring customer churn using Python (EDA + Feature Engineering) and Power BI (Interactive Dashboard). πŸš€ Project Summary

This project analyzes customer churn patterns, identifies high-risk customer segments, and uncovers key business drivers using Python for data preparation & feature engineering and Power BI for visualization & insights.

The final deliverable is a fully interactive Power BI dashboard and a detailed churn analysis report suitable for business stakeholders.

πŸ› οΈ Tech Stack

πŸ“ Project Structure β”œβ”€β”€ data/ β”‚ └── customer_churn.csv β”œβ”€β”€ analysis/ β”‚ └── customer_churn.ipynb β”œβ”€β”€ dashboard/ β”‚ └── First_project.pbix └── README.md

πŸ“˜ Objective

To understand customer churn behavior, engineer meaningful features, uncover patterns, and build an interactive dashboard that helps businesses:

Identify high-risk customers

Detect churn-driving factors

Make data-backed retention decisions

πŸ“Š Workflow

πŸ”Ή 1. Data Cleaning (Python)

Handled missing values

Normalized column formats

Converted dates

Corrected data types

Extracted City and State from address

πŸ”Ή 2. Feature Engineering (Python)

Created advanced customer metrics:

Feature Description AgeGroup Categorized age brackets TenureGroup Groups based on customer years SpendPerYear Total spend normalized per year SitesPerYear Number of sites per year EngagementScore Tenure Γ— Sites LoyaltyScore Total purchase Γ· (Years + 1) LocationRisk State-level churn probability CompanyRisk Company-level churn probability

These features help uncover patterns that raw data cannot reveal.

πŸ”Ή 3. Exploratory Data Analysis

Churn distribution

Correlation analysis

Box plots, histograms, scatterplots

Segment-level churn behavior

State-wise churn hotspots

πŸ”Ή 4. Power BI Dashboard

Created an interactive dashboard with:

KPI Cards

βœ”οΈ Churn Rate βœ”οΈ Total Customers βœ”οΈ Churned Customers

Customer Segments

Churn by AgeGroup

Churn by Tenure

Churn by Account Manager

Engagement & Behavior

Churn vs SpendPerYear

Churn vs SitesPerYear

Churn vs LoyaltyScore

EngagementScore trends

Geographical Insights

Churn by State

LocationRisk analysis

πŸ“ˆ Key Insights

βœ”οΈ Customers with < 3 years of tenure churn significantly more. βœ”οΈ Higher churn among customers with multiple sites. βœ”οΈ Lack of an Account Manager strongly correlates with churn. βœ”οΈ Low SpendPerYear and LoyaltyScore indicate churn-prone customers. βœ”οΈ Some states show statistically higher churn rates.

πŸ“ Business Recommendations

Improve onboarding for early-tenure customers

Provide special support to high-site customers

Assign account managers to at-risk segments

Offer engagement incentives to low-spend customers

Investigate high-churn states for service gaps or competition

πŸ–₯️ Dashboard Preview

(Add your dashboard screenshot here)

🧰 How to Run This Project 1️⃣ Clone the repository git clone

2️⃣ Install required Python libraries pip install -r requirements.txt

3️⃣ Open the analysis notebook jupyter notebook analysis/customer_churn.ipynb

4️⃣ Open the dashboard

Open the Power BI file:

dashboard/First_project.pbix

βœ”οΈ Final Deliverables

Cleaned & engineered dataset

Python Notebook with EDA & feature engineering

Interactive Power BI Dashboard

Professional written report

GitHub portfolio-ready repository

πŸ™Œ Acknowledgements

This project was created to strengthen end-to-end data analytics skills including Python, Power BI, and business storytelling.

⭐ If you like this project

Give the repo a ⭐ on GitHub β€” it helps!