~/talk

Understanding Polars Expressions when you're used to pandas

Talkat PyData Amsterdam 2024 · 2024-09-18..09-20· [python, data-visualization]
slides:none on file

Polars expressions are presented as a function from DataFrame to Series that enables lazy execution and optimizer-driven reuse (e.g., shared pl.col().shift(1) is computed once), backed by a GPU engine behind a feature flag and industry reports of up to 10× shorter pipelines. Groupby aggregations auto-explode aggregates to scalars for convenience. A concrete pandas reimplementation is shown (an Expression class with __call__ and operator overloads) proving the model, and demos with lazy/eager modes confirm the approach works.

AI-written summary · about

  1. 0:00Introduction
  2. 1:02Why care about Polars
  3. 4:12Polars crash course
  4. 6:20Polars expressions
  5. 7:22Mental model for expressions
  6. 10:16Multi-column expressions
  7. 11:59Multi-output expressions
  8. 14:05Group by aggregations
  9. 18:27Reimplementing expressions
  10. 24:55Expression reimplementation demo
  11. 27:03Summary
  12. 27:45Q&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.