Python Polars: The Definitive Guide with Jeroen Janssens and Thijs Nieuwdorp
Super Data Science: ML & AI Podcast with Jon KrohnMay 6, 20251h 10min14,958 views
49 connectionsΒ·40 entities in this videoβThe Polars Book and Its Authors
- π Jeroen Janssens and Thijs Nieuwdorp discuss their new book, "Python Polars: The Definitive Guide," co-authored due to Polars' growing importance in data science.
- βοΈ Both authors, formerly at Zomia, a data and AI consulting company, collaborated on the book, with Jeroen having prior book-writing experience and Thijs making his podcast debut.
- π A special giveaway is announced: three signed copies of the book are available via raffle at polarsguide.com/sds until Sunday, with the first chapter offered for free to all participants.
Polars vs. Pandas and Best Practices
- π‘ Polars is praised for its declarative approach, allowing users to specify the desired end result while the engine handles optimization, leading to more readable code.
- π« A key best practice in Polars is the elimination of excessive brackets, favoring a more natural, paragraph-like syntax for data transformations.
- π€ While acknowledging Pandas' foundational role, the authors highlight Polars' significant improvements in memory usage and compute time, often achieving up to 10x gains.
- π οΈ The development of Polars was influenced by frustrations with existing libraries like Pandas, aiming to provide a more robust and efficient data manipulation experience.
Real-World Polars Implementation
- π An early production implementation of Polars at Aliander, a major Dutch utility company, dramatically reduced memory usage from 500 GB to 40 GB for a specific task.
- π This real-world application, running for over a year before Polars' 1.0 release, validated the library's performance and efficiency in handling large datasets.
- π The experience of implementing Polars in production directly informed the book, helping to identify limits, inconsistencies, and potential areas for improvement within the library.
Great Tables and UV Package Manager
- π The Great Tables package is introduced as a solution for styling data frames, enabling presentable tables with formatting like colors and mini-graphs without altering the underlying data.
- β‘ UV, a new Rust-based package manager, is highlighted as a significantly faster and more reliable alternative to Poetry, simplifying environment setup and dependency management.
- π UV's speed was instrumental in identifying a performance regression in Polars, showcasing its utility beyond standard package management.
Data Science at the Command Line and Book Partnerships
- π» Yurun shares insights on embracing the command line, recommending customization with colors and fonts, using aliases, and working in isolated environments like Docker to overcome intimidation.
- π€ A significant collaboration with NVIDIA and Dell provided hardware for benchmarking Polars on GPUs, with results detailed in the book's appendix, demonstrating substantial speedups.
- π The authors recount an amusing anecdote where a change in Polars' visualization backend (from HVPlot to Altair) necessitated a rewrite of a book chapter, underscoring the dynamic nature of software development.
Knowledge graph40 entities Β· 49 connections
How they connect
An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.
Hover Β· drag to explore
40 entities
Chapters19 moments
Key Moments
Transcript258 segments
Full Transcript
Topics14 themes
Whatβs Discussed
PolarsPandasDataFramesData TransformationPythonData VisualizationCommand LinePackage ManagementGPU ComputingBenchmarkingUVGreat TablesNVIDIADell
Smart Objects40 Β· 49 links
ProductsΒ· 12
PeopleΒ· 10
CompaniesΒ· 8
MediasΒ· 2
ConceptsΒ· 8