~/talk

Pandas on Steroids

Talkat PyCon Italia 2023 · 2023-05-25..05-28· [data-science]
links:none on file
slides:none on file

A 2.5 GB NYC taxi CSV starts at 51.4 seconds and 6.7 GB memory; dropping unused columns, parsing pickup/dropoff as datetimes and converting borough to category halves memory and speeds things up. Switching CSV reader to the pyarrow engine cuts load from ~17s to 1.3s, switching storage to parquet drops reads to ~157 ms, and replacing row-wise apply with vectorized series operations lowers end-to-end time to ~1.2s. Pandera enforces schemas and catches empty borough strings; enable copy-on-write to avoid setting-with-copy bugs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:05Why Pandas
  3. 2:30Data
  4. 2:54Pipeline
  5. 4:41Reading CSV
  6. 6:43Using Categories
  7. 7:39Using Prior Engine
  8. 9:27Improved Pipeline
  9. 14:29Problem on Data
  10. 15:16Tools
  11. 16:53Conclusion
  12. 18:13CopyOn
  13. 19:35Outro
~/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.