Customer churn is one of the biggest challenges for subscription-based businesses.
Losing customers directly impacts revenue, profitability, and long-term growth.
This project analyzes customer churn patterns using Python and SQL to:
- Identify high-risk customer segments
- Discover key churn drivers
- Generate actionable business insights
- Recommend retention strategies
The analysis simulates a real-world business scenario for telecom/subscription-based companies.
Companies struggle to answer:
- Why are customers leaving?
- Which customer segments are most at risk?
- How can churn be reduced strategically?
- What business actions improve retention?
This project addresses these questions using structured data analysis.
- Python
- Pandas (Data Cleaning & Manipulation)
- NumPy
- Matplotlib
- Seaborn
- SQL
- Aggregation Functions
- CASE Statements
- Group By Analysis
- Window Functions
- Jupyter Notebook
Dataset: Telco Customer Churn Dataset
The dataset includes:
- Customer demographics
- Contract details
- Billing information
- Service subscriptions
- Churn status (Yes/No)
Target Variable:
Churn
The following preprocessing steps were performed:
- Converted
TotalChargesfrom object to numeric - Handled missing values
- Created tenure-based customer segments
- Validated data consistency
Key analyses performed:
- Overall churn rate calculation
- Churn distribution visualization
- Contract type vs churn comparison
- Tenure vs churn behavior
- Monthly charges vs churn pattern
- Tenure group segmentation
- Month-to-month contract customers show significantly higher churn.
- Customers with low tenure (0–12 months) are most likely to churn.
- Higher monthly charges correlate with increased churn probability.
- Long-term contract customers demonstrate stronger retention behavior.
- Early-stage customers require stronger engagement strategies.
- Promote long-term contracts with loyalty incentives.
- Offer retention discounts for high monthly charge customers.
- Improve onboarding strategy for new customers.
- Design targeted campaigns for high-risk tenure segments.
- Implement proactive engagement during first 12 months.
- Data Cleaning & Preprocessing
- Exploratory Data Analysis
- Business Insight Generation
- SQL Aggregations & Conditional Logic
- Data Visualization
- Analytical Thinking
- Problem Solving
This project demonstrates how structured data analysis can:
- Identify churn drivers
- Improve customer retention strategies
- Support data-driven decision-making
It reflects real-world business analytics workflow used by Data Analysts.
Sunil Kumar Aspiring Data Analyst SQL | Power BI | Python | Business Analytics



