Mohammed Mudassir Uddin

BlogFebruary 2026open sourcecausal inference

Eleven pull requests to pgmpy in one week

Reading a causal-inference library closely enough to fix it, from d-separators to NaN treatment effects.

Between 25 and 28 February I opened 11 pull requests against pgmpy, the Python library for probabilistic graphical models and causal inference. Reading code closely enough to fix it is the fastest way I know to learn how a library really works.

What I found

Eight of the eleven have since been closed, and three are still open.

What I would do differently

Several of the pull requests bundle two or three related fixes. A maintainer reviewing a library in their spare time would rather get one fix per request, each with a test that fails before the change and passes after it. Bundling made my week faster and their review slower, which is the wrong trade.