Test-Driven Data Analysis
summary
Claims a reproducible workflow: capture inputs and outputs, run reference tests that can auto‑regenerate expected results, and infer constraints on Pandas dataframes to catch drift. Demonstrations use the tdda library (pip / Github) with unittest/pytest, CSV/feather support, and a regexp generator; running constraints on elements_92 vs elements_118 shows concrete failures (max/min, nulls, duplicates). Includes commands to discover and verify constraints and to diff or rewrite references.
AI-written summary · about
chapters (13)
- 0:00Test-driven data analysis intro
- 1:05What is TDD
- 3:57Errors in data analysis
- 15:52Why TDD matters
- 16:14Reference tests for analytics
- 20:12Implementing reference tests
- 28:18Testing unstructured outputs
- 37:43Testing structured outputs
- 42:40Constraint discovery intro
- 48:42Generating constraints
- 57:19Introducing Rexy
- 1:04:05What is Rexy
- 1:09:24Q&A
related talks
01h 31mTest-Driven Data Analysis
01h 32mTest-Driven Data Analysis in Python
39mDevelopments in Test-Driven Data Analysis
29mTDD shouldn't be TDDious
01h 30mAdvanced Software Testing for Data Scientists
01h 29mAdv. Software Testing for Data Scientists
39mUnit Testing for Data Scientists
28mHow to not pull your hair out while providing data to the business
