4 ms·
I still don't like dataframes but oh my God Polars is so much better than pandas. I was doing some time series calculations, simple equity price adjustments ba
by mhh__ 2y ago
I still don't like dataframes but oh my God Polars is so much better than pandas.
I was doing some time series calculations, simple equity price adjustments basically, in Polars and my two thoughts were:
- WTF, I can actually read the code and test it.
- it's running so fast it seems like it's broken.
- eskaytwo 2y agoThere’s some nice plugins too, some are finance related: https://github.com/ddotta/awesome-polars https://github.com/ddotta/awesome-polars
- mhh__ 2y agoThe one thing I really want is for someone to make it so I can use it in F#. Presumably it's possible given how the python bit is implemented under the hood?
- whyever 2y agoIt uses pyo3 to generate the bindings, so you would have to find a similar crate for F#/.NET and port the polars Python FFI to it. If such a crate does not exist, it will be even more work.
- LaurensBER 2y agoYeah, the readability difference is immense. I worked for years with Pandas and I still cannot "scan" it as quickly as with a "normal" programming language or SQL. Then there's the whole issue with (multi)-indexes, serialisation, etc. Polars makes programming fun again instead of a chore.