yfinance icon indicating copy to clipboard operation
yfinance copied to clipboard

Add support for python-polars

Open edoaltamura opened this issue 1 year ago • 3 comments

Besides the use of pandas, it would be great to add support for the polars Python interface: https://github.com/pola-rs/polars. Polars has very similar functionalities to Pandas, but uses a Rust backend that significantly speeds up operations compared to Pandas.

edoaltamura avatar Feb 24 '24 17:02 edoaltamura

I like what I hear about Polars, but great care will be needed to avoid upsetting user base.

Is there another popular package that migrated that we can learn from?

ValueRaider avatar Feb 24 '24 18:02 ValueRaider

I can't think of projects that started in Pandas and then transitioned, and I do agree that care is needed when migrating foundational dependencies. This Medium article can give a flavor of what a 'translation' might look like.

In my view, simply translating can give some speed up over Pandas, but some more thinking is required to make the most of the lazy execution in Polars, which would give an extra boost.

edoaltamura avatar Feb 29 '24 20:02 edoaltamura