~/talk

Faster Pandas: Speed Up Your Code, Shrink Your Cloud Bill

Talkat PyData Tel Aviv 2025 · on Wednesday, 2025-11-05· at 11:30· Red· [python, web-performance]
links:none on file
slides:none on file

Shows concrete wins: switching CSV to parquet with pyarrow drops an 8.6s CSV load to ~283ms (≈28x); using list appends plus one concat or pandas.from_records with a generator cuts a 712ms loop to ~12ms (≈56x); replacing pandas max with a NumPy-based max yields ~100x speedups in that case. Demonstrates profiling toolchain: %timeit, timeit, cProfile / prun, pytest-benchmark and visualizers like snakeviz, and highlights memory counts (a DataFrame at ~601MB) and avoiding CSV to save RAM and cloud cost.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:39Why optimize Pandas performance
  3. 2:22Rules of the optimization club
  4. 8:08Loading data efficiently
  5. 12:56Benchmarking with timeit
  6. 15:54Profiling to find bottlenecks
  7. 19:37Visualizing profiling results
  8. 21:04Optimizing DataFrame concatenation
  9. 23:15Using numpy for faster calculations
  10. 25:10Memory optimization strategies
  11. 29:07Key takeaways and Q&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.