Skip to content

subki72/Customer-Cohort-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Customer Cohort Retention Analysis

Python License Status

Overview

This project analyzes customer retention behavior using Cohort Analysis. By grouping users based on their first transaction month, we track retention trends and visualize customer loyalty over time. This analysis helps businesses understand user engagement and churn patterns.

Features

  • Data Loading: Loads and cleans transaction datasets.
  • Cohort Generation: Groups users based on their first purchase month (first_cohort).
  • Retention Calculation: Calculates monthly retention rates for each cohort.
  • Visualization: Generates an intuitive Heatmap using Seaborn to spot trends instantly.

Technologies Used

  • Pandas (Data Manipulation)
  • NumPy (Numerical Operations)
  • Seaborn & Matplotlib (Data Visualization)

How to Use

  1. Clone this repository
    git clone [https://github.com/](https://github.com/)[username]/Customer-Cohort-Retention-Analysis.git
    cd Customer-Cohort-Retention-Analysis
  2. Install requirements
    pip install pandas numpy seaborn matplotlib
  3. Run the Notebook
    • Open Cohort.ipynb in Jupyter Notebook/Lab.
    • Run the cells sequentially to process dummy_data.csv and generate the cohort chart.

File Structure

File Description
Cohort.ipynb Main Jupyter Notebook containing the analysis code
dummy_data.csv Transaction dataset (Anonymized/Dummy Data)
LICENSE MIT License details
README.md Project documentation

Results

The analysis outputs a heatmap showing the percentage of active customers over time. alt text

Key Insights:

  • Identifies how long customers typically stay active.
  • Highlights periods with the highest churn rates.
  • Shows the effectiveness of acquisition campaigns in specific months.

License

Distributed under the MIT License. See LICENSE file for more information.

About

Customer Cohort Retention Analysis project using Python. Includes data cleaning, preprocessing, cohort grouping, and retention heatmap visualization with Seaborn/Matplotlib to uncover customer behavior and loyalty insights.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors