← All projects
Data science tools

DoWhy

A Python library for working out cause and effect in data, not just patterns.

New this week

What it does

Most data tools find patterns, like two things that rise together. DoWhy helps answer cause-and-effect questions, such as "what would happen if we changed this?" This field is called causal inference.

You write down your assumptions about how things are connected, and DoWhy estimates the effects. A key feature is that it tests those assumptions, which its makers say makes the results more robust and easier for non-experts to use.

It also helps find the root cause of a problem and explore "what if" scenarios. It's part of the wider PyWhy group of causality tools.

Who it's for

Data scientists, analysts and researchers who need to measure the real effect of a decision or change.

Can I use it without coding?

Developers only. It's a Python library used in code or notebooks. New to this? Start here.

Can I run it?

Cost
FreeNothing to pay or sign up for.
Computer
An ordinary computer is fine
Privacy
Runs on your own device: your data stays with you
API key
Not needed

Try it

Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?

Before you install

  • Only download from the official GitHub page. Copies with similar names exist for many popular projects.
  • License (MIT): Very permissive: free to use, change and share, including for business.
  • More on staying safe

Where people are talking about it