ELSEIF
Your brief EB
232 stories from 207 feeds 1245 clusters Refreshed 35 minutes ago next pull 21:39

TECH Signal 243 2 feeds carried it

Polars 2.0 pre-release switches LazyFrame default to streaming engine, tightens type and shape errors

Polars 2.0 release candidate makes the streaming engine the default for LazyFrame queries and removes several implicit type coercions and shape accommodations that previously produced silent wrong results.

WHY IT MATTERS

Code that relied on implicit row ordering after joins, group_by, or unpivot operations will produce different results unless maintain_order is set. Pipelines that silently tolerated type mismatches or mismatched dataframe heights will now raise errors, surfacing bugs that were previously hidden.

Written by elseif from the cluster below · every claim links back to a source

The three things worth knowing

01

LazyFrame.collect() now defaults to the streaming engine, which the project estimates is roughly 5x faster in aggregate but does not guarantee row order for joins, group_by, and unpivot.

02

is_in no longer performs lossy type coercion between incompatible types like Int64 and Float64, raising InvalidOperationError instead of silently producing false matches.

03

Horizontal concatenation of dataframes with different row counts now raises ShapeError instead of padding the shorter frame with null values; padding requires explicit how="horizontal_extend".

THE CLUSTER

Same story, 2 feeds.

ORDERED BY FIRST SEEN
pola.rs via Hacker News Pre-Release of Polars 2.0 Open ↗
The New Stack Polars 2.0 pre-release comes with a 5x speed boost — but it could change row order Open ↗