The story’s score and claims

Comments on No. 15 of 116 · OpenTeams · edition of Tuesday 24 November 2026

Write Polars syntax, run it on Pandas and DuckDB

Summary

Khuyen Tran at OpenTeams shows how Narwhals (v2.28) lets one function written in Polars syntax run on pandas, Polars, lazy Polars, DuckDB and, through a community plugin, DataFusion. Order-dependent operations on lazy inputs raise an error unless order_by is set, and a parametrized pytest exposed a pandas float-versus-integer mismatch. She also says Narwhals keeps Polars 1.x explode behavior on Polars 2.1, and that narwhals.stable.v2 is a stable API. Several of these claims come from the author alone, without cited sources.

Comments

Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules