~/talk

An Introduction to Pandas 2, Polars, and DuckDB

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

Shows concrete tradeoffs and outcomes: Pandas 2 optionally uses the PyArrow backend, yields ~50–70% string memory savings and copy‑on‑write behavior, and vectorized code beats rowwise apply by about 200x faster in the microbench shown. Polars runs on a Rust/Arrow engine with a lazy query optimizer that parallelizes groupbys (not distributed) and requires porting code because the API differs. DuckDB is an in‑process OLAP SQL engine that queries Pandas/Polars directly, reads CSVs in place, and often matches cluster performance on a single machine.

AI-written summary · about

  1. 0:00Talk introduction
  2. 3:38Speaker background
  3. 6:51Why pandas 2 matters
  4. 9:21Pandas 2 features
  5. 13:15Chaining operations
  6. 18:26Vectorized vs apply
  7. 23:20PyArrow benefits
  8. 28:25Polars introduction
  9. 33:27Polars API and lazy eval
  10. 43:04Pandas vs Polars perf
  11. 47:22When to use Polars
  12. 53:58DuckDB intro
  13. 1:00:02DuckDB SQL queries
  14. 1:05:28Mixing Polars, pandas, and DuckDB
  15. 1:12:21Choosing between pandas, Polars, and DuckDB
  16. 1:18:03Q&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.