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
  • 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
  • CausalImpact in Python: Estimate a Campaign's Effect with Structural Time Series
    Causal Inference

    CausalImpact in Python: Estimate a Campaign's Effect with Structural Time Series

    Estimate the effect of a campaign with no randomized control using a CausalImpact-style model in Python: a structural time series fit on the pre-period with control series, then forecast forward as the counterfactual.

    Nov 25, 2026
    causal inference causalimpact structural time series counterfactual campaign measurement placebo test statsmodels time series

Python plotting and visualization demystified

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