logoalt Hacker News

Release of Polars 2.0

213 points • by simicd • today at 11:59 AM • 35 comments • view on HN

Comments

gozzoo • today at 1:10 PM

I'm not following the trends closely, but has Polars become a full replacement for Pandas? Are there use cases where one is better suited than the other?

➕ show 6 replies
therno • today at 1:57 PM

I use Polars 2.0(rc) to (pre)calculate billions of weather scores on https://therno.com and it has been a lifesaver

Happy that I can upgrade to 2.0 final tonight.

niltecedu • today at 2:54 PM

A bit surprised about the datafusion results from the post, I have tried it time and time again, but datafusion has always been the leading/trading blowers with polars for our workfloads with duckdb being vastly slower.

➕ show 1 reply
sgarland • today at 1:04 PM

TIL that Polars supports SQL. Amazing.

dkgs • today at 12:52 PM

A coincidence with the fact duckdb is supposed to release 2.0.0 very soon? :)

➕ show 2 replies
hnd9q09qk4 • today at 1:01 PM

Thing I care about most is whether the old eager-vs-lazy footguns got cleaned up. Half my bugs were a stray collect() in a loop killing the query plan.

dartharva • today at 1:51 PM

Been using polars for over a year now, it is fantastic.

Kinrany • today at 1:38 PM

How does Polars relate to DataFusion these days? There's no reason for them not to converge into a single ecosystem, is there?

➕ show 1 reply
Vaslo • today at 1:37 PM

My team is all moving over to polars and DuckDB

➕ show 1 reply
tonyhart7 • today at 1:10 PM

finally long time coming

cant wait to upgrade my Quant trading bot

➕ show 1 reply
mrtimo • today at 2:55 PM

I can use pandas to clean a dataset, but each cleaning task is usually one line of code. OTOH, With DuckDB with one SQL statement I can replace 40+ lines of polars/pandas. You may reply, SQL isn't as easy to understand! Fair point, it's a declarative language... which is why I use Malloy. Malloy is to TypeScript as Javascript is to SQL. Malloy is much easier to read and write (just as TypeScript is) because it has a built in semantic model -- all the joins, measures, and dimensions are done in one place.

Here is an example [1] of visualizing college football games. Here are all the queries, and semantic model that power all the visualizations [2] Here is the AI generated typescript/react that does the visualizations [3]. The Malloy ecosystem has Malloyyo and Publisher which are replacements for PowerBI and Tableau and Looker. Here is another example for visualizing global trade [4].

[1] - https://mrtimo.github.io/cfb-games/games-2026.html?week=Week... [2] - https://github.com/mrtimo/cfb-games/blob/main/drives.malloy [3] - https://github.com/mrtimo/cfb-games/blob/main/dashboards/gam... [4] - https://tradeexplorer.org/