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

Supports four distinct causal inference tasks—effect estimation via do-calculus and graph-based identification, causal influence quantification (mediation analysis), counterfactual what-if analysis, and root cause attribution. The library uniquely combines graphical causal models for structural reasoning with potential outcomes methods for estimation, enabling both treatment effect identification and node-level causal mechanism modeling. Its refutation API enables systematic falsification of causal assumptions across any estimation method.

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

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)

18

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.