~/talk

Getting Started with Polars

Talkat PyCon US 2023 · 2023-04-19..04-27· [data-visualization]
slides:none on file

Workshop uses Polars 0.17.5 on a real Twitter CSV (~5700 rows × 40 cols) and shows concrete moves: parse messy datetimes with strptime and timezone convert, cast large ints to u8/u16/u32 to cut memory, build features (is_reply, length, hour), and pivot/groupby aggregations. Benchmarks show a typical CSV read+transform at ~2.7 ms in Polars versus ~38 ms in pandas and expressions vs apply yields about a 10× speedup. It provides a runnable notebook and labs and demonstrates lazy evaluation and query planning.

AI-written summary · about

  1. 0:00Introduction
  2. 1:05Matts Background
  3. 8:23Loading Data
  4. 15:18Exploring Data Frame
  5. 17:17Exploring Data Types
  6. 20:49Lowering Memory Requirements
  7. 23:18Expressions
  8. 26:40Columns
  9. 29:03Vertical Stacking
  10. 31:57Transposing
  11. 35:02Integers
  12. 37:50Polar Share
  13. 46:17Polar Documentation
  14. 48:16Avoid Drop
  15. 49:38Renaming columns
  16. 51:14PLAll
  17. 52:04Task
  18. 55:33Troubleshooting
~/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.