~/talk

Testing Pandas- Shoots, leaves, and garbage!

Talkat PyData Global 2022 · 2022-12-01..12-03· [python]
slides:none on file

Shows concrete, runnable steps to make Pandas pipelines testable: a chained monthly_summary function on Alta ski data that shrinks ~14,000 rows to ~2,000 after grouping and exposes a bug (missing parse_dates) that tests catch and then fix. Uses pytest and ipytest for running tests, demonstrates Pandera + Hypothesis for generated-data property tests and Great Expectations for column-level assertions. Demonstrates pipe debugging and IPython set_trace and reports a passing test run in about 0.36s.

AI-written summary · about

  1. 0:00Testing pandas
  2. 4:12Raw data to pandas chains
  3. 7:42Debugging with pipe
  4. 9:50Debugging in IPython/Jupyter
  5. 11:36Testing functions with pytest
  6. 15:04Advanced testing with Pandera/Great Expectations
  7. 26:25Q&A
~/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.