~/talk

Data Refinement: Unleashing the Power of SQL in Python using Polars

Talkat Conf42 Python 2024 · on Thursday, 2024-02-29· [data-engineering]
name:Tom Levy
links:none on file
slides:none on file

Polars runs on Rust with Apache Arrow memory, exposes SQLContext and an easy Python API, and uses lazy frames to query very large files (example: a Pokemon CSV ~200 million rows) without loading them into memory. The demo registers tables, runs SQL that streams output to result.csv, and uses a CTE to join trainers with Pokemon, LIMIT 6, returning one champion (Alex Bell). Eager vs lazy control and streaming collect actually write results and avoid memory spikes.

AI-written summary · about

  1. 0:00intro
  2. 0:20preamble
  3. 0:32agenda
  4. 0:54why polars?
  5. 3:09introduction to sql content
  6. 5:05utilize lazyframes for big datasets
  7. 10:16common table expressions (ctes)
  8. 13:47thank you!
~/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.