Is it possible to pass a DataFrame created in Rust to Python?

198 views Asked by At

I'm looking to create a Rust app with Python plugins using polars. I want to allocate most if not all dataframes in Rust (all the data will be on the Rust side), but then use them in Python in a user defined plugin. Is this possible? I have seen Python --> Rust examples, but not Rust --> Python examples.

Update: pyo3-polars does seem to be close to what I need, BUT I think it copies/moves the frame vs. simply wrapping it? I was hoping to have Python simply access the dataframe, not own it.

0

There are 0 answers