~/talk

Pandas 2, Dask or Polars? Tackling larger data on a single machine

Talkat PyData Global 2023 · 2023-12-06..12-08· [developer-experience]
links:none on file
slides:none on file

Pandas 2 adds Arrow types and copy‑on‑write (to be default later) and on one dataset shows 82 million rows → 39 GB (numpy) vs 11 GB (Arrow) but mixed perf where some groupbys get slower. Polars is Rust + Arrow, multicore and often much faster — e.g. Polars: 3s vs Pandas 30s on a median/sort aggregate — and its lazy scan handles many parquet files in 13s for 640M rows with optional streaming mode. Dask with new Expressions cuts a naive 402s run to 26s by query planning.

AI-written summary · about

  1. 0:00Introduction
  2. 1:06Choosing pandas, Dask or Polars
  3. 3:53Pandas 2 Arrow backend
  4. 7:24Copy-on-write in pandas
  5. 10:35Polars architecture
  6. 13:01Benchmarking pandas, Polars and Dask
  7. 15:49Lazy evaluation in Polars
  8. 17:33Scaling with Dask
  9. 20:22Polars vs Dask for medium data
  10. 22:47Key differences and migration
  11. 24:53Summary
  12. 25:57Q&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.