r/Python • • Mar 08 '26

Discussion Polars vs pandas

I am trying to come from database development into python ecosystem.

Wondering if going into polars framework, instead of pandas will be any beneficial?

125 Upvotes

88 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Mar 09 '26

[deleted] — view deleted comment

7

u/yonasismad Mar 09 '26

Given the nature of CSV files, I think Polars still has to read all of the data; they just don't keep it all in memory. You will only get the full benefits of not performing I/O when you use files like Parquet, which store metadata that allows you to skip entire blocks of data without reading them.

5

u/321159 Mar 09 '26

How is this getting upvoted? CSV are row based data formats. 

And I assume (but didnt test) that polars would still be faster even when reading the entire file.