~/talk

How you can write a dataframe-agnostic library

Talkat PyCon Italia 2024 · 2024-05-22..05-25· [data-engineering, python]
slides:none on file

Demonstrates a concrete path to accept pandas, Polars and others without forcing conversion by using the DataFrame Interchange Protocol and a lightweight adapter called Narwhals that translates a small Polars-like API back to the native engine. Gives a measured example where a native Polars operation runs ~4 ms but the convert-to-pandas route is 4 ms vs 30–40× slower. Shows a live-coded Narwhals wrapper that keeps computation lazy, preserves GPU execution and has zero required dependencies, and it works on the Titanic demo.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 2:36Why many dataframe libraries exist
  3. 6:51Problems with pandas-only support
  4. 9:15Convert to pandas approach
  5. 11:47Introducing Narwhals solution
  6. 12:54Live coding with audience questions
  7. 18:13Narwhals in action demo
  8. 21:45Narwhals API coverage and adoption
  9. 24:13Summary and key takeaways
  10. 25:58Q&A session
~/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.