pola-rs / pyo3-polars

Plugins/extension for Polars
MIT License
238 stars 39 forks source link

Adding support of PyLazyFrame #9

Closed Marlin-Na closed 1 year ago

Marlin-Na commented 1 year ago

Moving https://github.com/pola-rs/polars/issues/7933 here

I am trying to implement an anonymous scan method (with the AnonymousScan trait) reading data from custom sources. I am also hoping to make the resulting LazyFrame available in python.

Using the pyo3-polars crate, I am able to convert between DataFrame in Python and Rust. However, for LazyFrame, it seems that we don't have an easy option to pass it to Python.