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
  • Sample Ratio Mismatch (SRM) Check in Python for A/B Tests
    A/B Testing

    Sample Ratio Mismatch (SRM) Check in Python for A/B Tests

    Check an A/B test for a sample ratio mismatch with scipy's chi-square test, find which segment causes it, and see how a lost-user bug can fake a lift.

    Nov 25, 2026
    ab testing experimentation sample ratio mismatch srm chi-square scipy data quality
  • A/B Test Analysis in Python: Conversion Rate and Revenue
    A/B Testing

    A/B Test Analysis in Python: Conversion Rate and Revenue

    Analyze an A/B test in Python: a two-proportion z-test for conversion rate, a Welch t-test for revenue per user, confidence intervals, and a chart of the lift.

    Nov 25, 2026
    ab testing experimentation statsmodels scipy confidence interval hypothesis testing conversion rate
  • Synthetic Control in Python: Build the Counterfactual and Run Placebo Tests
    Causal Inference

    Synthetic Control in Python: Build the Counterfactual and Run Placebo Tests

    Estimate the effect of a launch in one region by building a weighted blend of untouched regions that tracks it before the launch. Python code with SciPy, a gap plot, donor weights, and a placebo test.

    Nov 25, 2026
    causal inference synthetic control counterfactual scipy placebo test geo experiment panel data matplotlib
  • Bayesian A/B Testing in Python: Beta-Binomial Posteriors and P(B > A)
    A/B Testing

    Bayesian A/B Testing in Python: Beta-Binomial Posteriors and P(B > A)

    Run a Bayesian A/B test on conversion rates in Python with SciPy. Build Beta posteriors, compute the probability that B beats A, a credible interval for the lift, and the expected loss of each decision.

    Nov 25, 2026
    ab testing experimentation bayesian beta-binomial credible interval scipy conversion rate expected loss
  • Novelty and Primacy Effects in A/B Tests: Detect Them in Python
    A/B Testing

    Novelty and Primacy Effects in A/B Tests: Detect Them in Python

    Check whether an A/B test's lift is fading, fit an exponential decay to separate the novelty bump from the lasting effect, and compare new and returning users.

    Nov 25, 2026
    ab testing experimentation novelty effect primacy effect lift over time curve fit scipy pandas
  • Bootstrap Confidence Intervals in Python for A/B Tests
    A/B Testing

    Bootstrap Confidence Intervals in Python for A/B Tests

    Compute and plot a bootstrap confidence interval for an A/B test in Python with scipy.stats.bootstrap, compare percentile and BCa intervals, and bootstrap a median.

    Nov 25, 2026
    ab testing experimentation bootstrap confidence interval scipy revenue resampling

Python plotting and visualization demystified

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