~/talk

Pandas May Be Slow, but Pandas Doesn't Have to Be

Talkat PyColorado 2019 · 2019-09-07..09-08· [python]
links:none on file
slides:none on file

Shows concrete wins: converting ints to uint8 and floats to float32 and turning low‑cardinality strings into category shrinks a 286 KB frame to ~17 KB (region 10 KB → 1.3 KB, ~80% savings). Demonstrates slow patterns (index loop 270 ms) versus faster options (collect‑then‑assign, iterrows, apply ≈20 ms, vectorized/numpy ops fastest). Compares multiprocessing (≈50% time), threads (much slower), and pandarallel with parallel_apply (≈2.7 s) and gives the exact code patterns to try.

AI-written summary · about

  1. 0:00Start
  2. 7:24Floats
  3. 9:41Categoricals
  4. 14:37Memory Usage
  5. 22:16Cpu Execution Time
  6. 28:29Array Split Method
  7. 30:13Concurrent Futures
  8. 30:51Pandas Parallel
~/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.