py-why/dowhy

DoWhy is a Python library for causal inference that supports explicit modeling and testing of causal assumptions. DoWhy is based on a unified language for causal inference, combining causal graphical models and potential outcomes frameworks.

78
/ 100
Verified

This project helps decision-makers understand the true causes and effects within their data, moving beyond simple predictions to robust causal reasoning. It takes in your datasets and a model of how you believe variables influence each other, then outputs insights like the impact of a marketing campaign or the root cause of a system failure. Business analysts, product managers, researchers, and operations engineers can use this to make more informed choices.

7,995 stars. Used by 2 other packages. Actively maintained with 27 commits in the last 30 days. Available on PyPI.

Use this if you need to understand not just what happened or what will happen, but why it happened and what would happen if you intervened.

Not ideal if you only need to predict outcomes based on correlations, rather than inferring causal relationships.

causal-analysis decision-making root-cause-analysis effect-estimation what-if-scenarios
Maintenance 20 / 25
Adoption 12 / 25
Maturity 25 / 25
Community 21 / 25

How are scores calculated?

Stars

7,995

Forks

1,012

Language

Python

License

MIT

Last pushed

Mar 12, 2026

Commits (30d)

27

Dependencies

13

Reverse dependents

2

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/py-why/dowhy"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.