Lesson 1: From a notebook to a tested Python package
28 min read·
Module 2 · Lesson 1 · About 50 minutes · Needs: Python functions and pandas, and the Kestrel data (course-guide/06). Module 1 helps but is not required.
The situation
Week 2 at Kestrel, Monday 9 November 2026. Adaeze on the spring prototype: "Nobody can rerun it, and nobody has tested a line of it. Make the feature code something we can install, test and time." Rhys wants to know what features cost per parcel against his p99 of 50 ms (an illustrative target).
The running example is KP0104204 (simulated): collected from Dartford on Wednesday 2 September 2026 at 18:00, next-day service on route DAR-R28.