I'm sceptic about polars
Pandas or Polars to work with dataframes?
I've first heard about polars about a year ago, and It's been popping up in my feeds more and more recently.
But I'm just not sold on it. I'm failing to see exactly what role it is supposed to fit.
The main selling point for this lib seems to be the performance improvement over python. The benchmarks I've seen show polars to be about 2x faster than pandas. At best, for some specific problems, it is 4x faster.
But here's the deal, for small problems, that performance gains is not even noticeable. And if you get to the point where this starts to make a difference, then you are getting into pyspark territory anyway. A 2x performance improvement is not going to save you from that.
Besides pandas is already fast enough for what it does (a small-data library) and has a very rich ecosystem, working well with visualization, statistics and ML libraries. And in my opinion it is not worth splitting said ecosystem for polars.
What are your perspective on this? Did a lose the plot at some point? Which use cases actually make polars worth it?
I've been working with Pandas long time ago and recently I noticed that Pandas 2.0.0 was released (https://pandas.pydata.org/docs/dev/whatsnew/v2.0.0.html)
However, I see lots of people pointing up that the (almost new) library Polars is much faster than Pandas.
I also did 2 analyses on this and it looks like Polars is faster:
1- https://levelup.gitconnected.com/pandas-vs-polars-vs-pandas-2-0-fight-7398055372fb
2- https://medium.com/gitconnected/pandas-vs-polars-vs-pandas-2-0-round-2-e1b9acc0f52f
What is your opinion on this? Do you like more Polars?
Do you think Pandas 2.0 will decrease the time difference between Pandas and Polars?