This project performs exploratory data analysis (EDA) in Python to identify patterns related to customer churn and propose strategies to reduce cancellations. It uses a fictitious dataset and libraries such as Pandas and Plotly for data manipulation and visualization.
- Python 3
- Pandas — data manipulation and cleaning
- Plotly — interactive and static visualizations
- Kaleido — exporting Plotly charts as images
- 📥 Loads customer dataset from a CSV file.
- 🧹 Cleans and preprocesses data by removing irrelevant columns and handling missing values.
- 📊 Generates color-coded histograms to visualize the relationship between features and customer churn.
- 🔍 Applies filtering conditions to simulate scenarios aimed at reducing churn.
- 🖼️ Saves charts as PNG images in
pre-resolutionandpost-resolutiondirectories for before/after analysis.
- Python 3 installed on your system
- Create and activate a Python virtual environment:
python3 -m venv venv
source venv/bin/activate # Linux / MacOS
venv\Scripts\activate # Windows- Install dependencies
pip install -r requirements.txtRun the main Python script or open the Jupyter Notebook to execute the analysis and generate charts:
python main.py- The project generates PNG images of graphs in the pre-resolution and post-resolution folders.
- For best interactive experience, use Jupyter Notebook.
- Kaleido is required to export Plotly charts as images.

