Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stripe Cohort Analysis

Are you retaining customers? Do you have - OMG - negative churn? Are your hands sweating in anticipation? Let's find out! Now!

This generates 2 heatmaps of Stripe Customer Cohorts:

  1. Customer retention over time
  2. Revenue retention over time

Heatmaps are saved as PNGs in the current working directory (total_customers_heatmap.png and amount_due_heatmap.png, respectively).

Heavily inspired by Greg Reda's Cohort Analysis with Python. Seriously - he did like almost all the work.

stripe cohorts

Usage

STRIPE_API_KEY=[YOUR API KEY] python stripe_cohort_analysis.py

Downloading Invoices

PetalData's Stripe API is used to download invoices.

Questions?

Email [email protected].

About

Heatmaps of Stripe Customer Cohorts

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages