~/talk

Polars: A highly optimized dataframe library

Talkat Conf42 Machine Learning 2023 · on Thursday, 2023-05-18· [data-science, machine-learning]
slides:none on file

Polars 0.17 loads a 41k×83 CSV with scan_csv lazy + collect and through targeted casts and categoricals reduces memory from ~33 MB to ~2.5 MB (examples: float64→u16, ints→u8, strings→categorical). Regex extraction builds a speeds column, timezone-aware parsing converts created_on, nulls fill for EVs. Aggregations and pivot produce grouped means for plotting (then exported to pandas). Per-row apply crosses the Python boundary and runs ~100–300× slower, so prefer vectorized expressions.

AI-written summary · about

  1. 0:00intro
  2. 0:22preface
  3. 1:00relevant background
  4. 1:38outline of opinions
  5. 2:32types
  6. 3:03ints
  7. 5:41strings
  8. 6:46extract ffs, speed & manual
  9. 9:16dates
  10. 10:24chain
  11. 12:30don't apply (if you can)
  12. 13:55master aggregation
  13. 18:34summary
~/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.