~/talk

How to do real TDD in data science? A journey from pandas to polars with pelage!

Talkat PyData Paris 2025 · 2025-09-30..10-01· [testing, python]
links:none on file
slides:none on file

Claims that Pelage makes real TDD feasible in data workflows and that its Polars integration stays lightweight. The demo builds an open‑source testing layer on top of Polars and shows concrete steps: refactor for method chaining, translate from pandas to Polars, write failing checks, then add minimal fixes until tests pass. Surprising findings surface (masses >2000 kg, ~1M rows with three nulls, duplicated primary keys) and a ~4× speed gain appears; the live coding and package work end‑to‑end.

AI-written summary · about

  1. 0:00Real TDD in data science
  2. 1:06What is TDD and why data science
  3. 2:55Refactoring pandas with method chaining
  4. 10:21Pandas to polars efficiently
  5. 13:53Introducing Page for TDD
  6. 14:58First failing tests with Page
  7. 16:06Enforcing data types with Page
  8. 17:12Removing nulls in categoricals
  9. 17:56Testing commercial names
  10. 19:01Validating primary keys
  11. 20:03Standardizing fuel types
  12. 21:30Filtering invalid fuel types
  13. 22:35Summary of Page features
  14. 23:21Method chaining in data science
  15. 24:23Deploying Page in pipelines
  16. 25:24Q&A: Page with pytest
  17. 27:12Q&A: Rust integration for Page
  18. 28:37Q&A: Page vs dbt timing
  19. 30:49Q&A: Page vs Great Expectations
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.