Python Charts
    • Matplotlib 95 The core library, with full control over every element
    • Plotly 52 Interactive charts for the web and notebooks
    • Seaborn 34 Statistical plots straight from DataFrames
    • Pandas 15 Quick charts with df.plot()
    • Altair 11 Declarative charts built on Vega-Lite
    • Bokeh 5 Interactive plots with linked tools and widgets
    • Plotnine 8 ggplot2's grammar of graphics in Python
    • Streamlit 12 Charts inside Streamlit data apps
    • A/B Testing 15 Sample size, analysis and sequential tests
    • Machine Learning 26 Evaluate and explain scikit-learn models
    • Causal Inference 16 Diff-in-diff, synthetic control, IV and more
    • AI 6 Use LLMs to build charts from your data
  • Python
  • Chart Gallery
  • All Posts
  • Customer Lifetime Value in Python: Cumulative Revenue Curves and a BG/NBD Model
    Python

    Customer Lifetime Value in Python: Cumulative Revenue Curves and a BG/NBD Model

    Plot customer lifetime value two ways: cumulative revenue per customer by signup cohort with pandas and Matplotlib, then a probabilistic BG/NBD and Gamma-Gamma model with the lifetimes package and with its replacement, PyMC-Marketing, including calibration checks.

    Dec 05, 2026
    lifetimes pymc-marketing customer lifetime value ltv product analytics pandas matplotlib cohort analysis
  • Cohort Retention Heatmap in Python with pandas and Seaborn
    Python

    Cohort Retention Heatmap in Python with pandas and Seaborn

    Build a cohort retention table from a raw events log with pandas, draw it as a Seaborn heatmap, and add retention curves. Covers incomplete months, color scales, weekly cohorts and rolling retention.

    Dec 05, 2026
    pandas seaborn heatmap cohort analysis retention product analytics

Python plotting and visualization demystified

© 2026 PythonCharts.com. All rights reserved.
  • A/B Test Calculator: Sample Size and Significance
  • About
  • Python Chart Gallery
  • Credits
  • Matplotlib Color and Colormap Picker
  • Privacy Policy