~/talk

Making Pandas Fly

Talkat PyData Fest Amsterdam 2020 · 2020-06-15..06-20· [python, web-performance]
slides:none on file

Shows concrete wins: converting repeated strings to category dtype halves memory and cuts a value_counts from ~400ms to ~23ms, switching float64 to float32 halves RAM with identical results for coarse stats, float16 saves more but loses precision and can be slower, and calling series.values then numpy reduces work (up to ~10x faster for sum) though pandas + optional *bottleneck library yields ~3x speedups for mean. Includes a small GitHub tool that scans columns for compression opportunities and an IPython memory-usage tracer.

AI-written summary · about

  1. 0:00Introduction
  2. 2:34What we’ll cover in this talk
  3. 3:23Loading dataset
  4. 5:11Memory usage with deep flag
  5. 6:15String column memory
  6. 7:19RAM usage importance
  7. 8:23Compressing strings
  8. 10:09Category dtype performance
  9. 10:50Index lookups with categories
  10. 11:55Company ages from datetime
  11. 13:21Data quality checks
  12. 14:02Reducing float precision
  13. 16:49Float16 trade-offs
  14. 17:32RAM savings recap
  15. 17:53Dtype diet tool
  16. 19:05Query methods comparison
  17. 20:08Speed with numpy values
  18. 20:49Behind the scenes of pandas operations
  19. 22:12Pandas vs numpy benchmark
  20. 23:40Bottleneck speed boost
  21. 25:01When to use numpy
  22. 25:42Pandas performance deps
  23. 26:02RAM tracking with ipython
  24. 26:2220 years of mistakes
  25. 27:07Early error testing
  26. 27:47Efficiency notes repo
  27. 28:08Summary
~/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.