~/talk

The PyArrow revolution in Pandas

Talkat PyCon US 2025 · 2025-05-16..05-18· [databases, machine-learning]
slides:none on file

Pandas experiments with PyArrow show concrete wins and clear trade‑offs: CSV reads drop from ~103s to ~8.6s (≈10×), binary formats shrink a 2.2GB CSV to parquet 379MB (feather 1.4GB), memory can fall from ~15.6GB to ~3.7GB, and operations like regex searches and self‑joins run several× faster (e.g., 2s→366ms, 11s→102ms). Row‑oriented indexing and some per‑row operations remain much slower; PyArrow dtypes are nullable and interoperable and pandas plans PyArrow integration going forward.

AI-written summary · about

  1. 0:00PyArrow and Pandas intro
  2. 1:26DRY in Pandas foundation
  3. 3:32Pandas memory inefficiency
  4. 5:39Apache Arrow and PyArrow
  5. 7:26Faster CSV read/write
  6. 10:35Faster file formats with Arrow
  7. 13:01Swap NumPy for PyArrow
  8. 22:48PyArrow nullable types
  9. 25:15PyArrow string handling
  10. 26:23Pandas swappable backends
  11. 27:31Q&A performance impact
  12. 28:37Q&A Pandas in data ecosystem
  13. 30:22Q&A NumPy vs PyArrow
~/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.