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
  • Double Machine Learning in Python with DoubleML
    Causal Inference

    Double Machine Learning in Python with DoubleML

    Estimate a treatment effect from observational data with the DoubleML package, understand partialling out and cross-fitting by building it by hand, and see when flexible controls beat linear regression.

    Nov 25, 2026
    causal inference double machine learning doubleml confounding cross-fitting random forest observational data scikit-learn
  • Propensity Score Matching and IPW in Python (with a Love Plot)
    Causal Inference

    Propensity Score Matching and IPW in Python (with a Love Plot)

    Estimate a treatment effect from observational data in Python with propensity scores: fit them with scikit-learn, reweight with IPW, match on them, and check covariate balance with a love plot.

    Nov 25, 2026
    causal inference propensity score matching ipw observational data covariate balance scikit-learn statsmodels
  • Regression Discontinuity in Python: RD Plot and Local Linear Estimate
    Causal Inference

    Regression Discontinuity in Python: RD Plot and Local Linear Estimate

    Estimate a treatment effect at a cutoff in Python with regression discontinuity: draw the RD plot, fit a local linear model with statsmodels, and check bandwidth sensitivity, density, and placebo cutoffs.

    Nov 25, 2026
    causal inference regression discontinuity rdd statsmodels observational data bandwidth matplotlib

Python plotting and visualization demystified

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