~/talk

How you (yes, you!) can write a Polars Plugin

Talkat PyData London 2024 · 2024-06-14..06-16· [python]
slides:none on file

Claims no prior Rust needed and reproduces a Python numeric map in minutes; workflow uses the cookie cutter template, pip install polars and maturin, write a little Rust, register the function, and run `maturin develop`. Examples include a Pig‑Latin string plugin, an ABS numeric plugin made generic across ints/floats, a snowball stemmer via the rust‑stemmers crate, and a cumulative‑resetting sum (threshold 5) that compiles and runs, preserves nulls unless you handle them, and requires is_elementwise=false to respect groups.

AI-written summary · about

  1. 0:00Introduction
  2. 2:36First Polars plugin project
  3. 7:14Pig Latin plugin example
  4. 13:59Plugin registration and API
  5. 19:12Absolute value plugin
  6. 23:27Null values and Polars internals
  7. 35:57Generic plugins over data types
  8. 44:49Output types for lazy execution
  9. 51:20Advanced crates.io functionality
  10. 1:05:22Live coding cumulative resetting sum
  11. 1:09:46Keyword arguments in plugins
  12. 1:14:27Dependency management and size
  13. 1:17:56Live coding success stories
  14. 1:20:43Group-by context and optimizations
  15. 1:23:58Q&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.