Python Charts
    • Matplotlib 63 The core library, with full control over every element
    • Plotly 27 Interactive charts for the web and notebooks
    • Seaborn 17 Statistical plots straight from DataFrames
    • Pandas 8 Quick charts with df.plot()
    • Altair 5 Declarative charts built on Vega-Lite
    • Plotnine 3 ggplot2's grammar of graphics in Python
    • Streamlit 1 Charts inside Streamlit data apps
    • A/B Testing 15 Sample size, analysis and sequential tests
    • Machine Learning 14 Evaluate and explain scikit-learn models
    • Causal Inference 10 Diff-in-diff, synthetic control, IV and more
    • AI 1 Use LLMs to build charts from your data
  • Python
  • All Posts
  • CUPAC in Python: Use a Machine Learning Model to Reduce A/B Test Variance
    A/B Testing

    CUPAC in Python: Use a Machine Learning Model to Reduce A/B Test Variance

    Implement CUPAC in Python: train a gradient boosting model on a past cohort, use its prediction as the CUPED covariate, and see how much narrower the A/B test interval gets than with CUPED or linear regression.

    Nov 26, 2026
    ab testing experimentation cupac cuped variance reduction gradient boosting scikit-learn confidence interval
  • Partial Dependence and ICE Plots in Python with scikit-learn
    Machine Learning

    Partial Dependence and ICE Plots in Python with scikit-learn

    Draw partial dependence and ICE plots with scikit-learn's PartialDependenceDisplay to see how a model's prediction changes with one feature, and when the average hides different groups.

    Nov 25, 2026
    machine learning scikit-learn partial dependence ice plot model interpretation gradient boosting matplotlib
  • SHAP Plots in Python: Beeswarm, Bar, Waterfall, and Dependence
    Machine Learning

    SHAP Plots in Python: Beeswarm, Bar, Waterfall, and Dependence

    Explain a model with SHAP in Python: build the explainer, then read the beeswarm, bar, waterfall, and dependence plots, with runnable code for each.

    Nov 25, 2026
    machine learning shap scikit-learn feature importance model interpretability gradient boosting

Python plotting and visualization demystified

© 2026 PythonCharts.com. All rights reserved.
  • About
  • Credits
  • Privacy Policy