~/talk

From Pandas to Polars Upgrading Your Data Workflow

Talkat PyBay 2024 · on Saturday, 2024-09-21· [data-engineering, python]
slides:none on file

Compares Pandas and Polars by showing concrete edits on a 1 MB Strava GPX: Polars uses a Rust backend with Arrow, lazy evaluation and multithreading to avoid Python overhead, plus an optional GPU backend that gave ~10x speedup in tests. Demonstrates shrinking an int64 column to int16 to save memory, shows map_elements (Python callbacks) is costly while expression-based ops are 25x faster (965 μs vs 37 μs), and builds time-window aggregations that plot and work as expected.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 6:33Why switch from pandas to Polars
  3. 11:57Loading and inspecting Strava data
  4. 16:21Cleaning data and optimizing data types
  5. 29:02Handling missing data efficiently
  6. 33:20Chaining operations for readability
  7. 39:59Performance pitfalls and best practices
  8. 45:46Aggregations and visualizations
  9. 52:07Summary and key takeaways
~/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.