PT-118
A dataframe merge silently changes row order
The merged frame follows the right key order, not the left. Notes include a fix and a test that fails on older releases.
Reproduced on three versions
Lab notebook · Python
Note PT-118 · 04 Dec 2026
PyTruth keeps lab notes for claims about Python code. Each note records the interpreter version, the pinned dependencies, the smallest script that shows the behaviour and the raw output. Then it names the breakpoint: the data size, the concurrency level or the library release where the result stops holding. Notes that cannot name a breakpoint are marked incomplete rather than published as advice.
The notebook is small on purpose. A handful of reproduced findings is more useful than a feed of tips that nobody can rerun.

Reproduced or marked open
PT-118
The merged frame follows the right key order, not the left. Notes include a fix and a test that fails on older releases.
Reproduced on three versions
PT-113
The cost comes from evaluating annotations at import. Deferring them recovers most of the time on the sample tested.
Measured, narrow
PT-109
Two libraries disagree on what counts as a retry. The note stays open until the third case is measured.
Open
Protocol
A note missing any of the four is returned to draft. That rule is what keeps the notebook worth reading a year later.
Breakpoints
A merge that behaves one way at ten thousand rows and another at ten million is not a bug report, it is a boundary. The notebook treats boundaries as the most valuable part of a finding, because that is where a reader decides whether the advice applies to their data.
Where a boundary is unknown, the note says so in the first line and stays open. An open note is more honest than a closed one with a guess inside.

Notebook plates




Reproduce a note
The most useful message is a failure that contradicts a published note: your versions, your data shape and the traceback. Contradictions are logged as new notes rather than edited into the old one, so both results stay visible.