Skip to content

Providing a method to convert JsDataFrame back to DataFrame #327

@inakineitor

Description

@inakineitor

I am currently working on a NodeJS and Python library that uses Polars under the hood. Currently the core of the library is written in Rust, with the bindings generated through NAPI-RS and PyO3/Maturin, respectively.

Some of the methods of the library return a Polars data frame and I am using the pyo3-polars and nodejs-polars bindings as a mean of returning it in a way that the host language will understand.

The Python implementation worked well but I am having trouble finishing the NodeJS one because the df property of the JsDataFrame struct has visibility pub(crate) instead of pub, with no method to go from JsDataFrame to DataFrame. Is there a reason for which impl Into<DataFrame> for JsDataFrame is not implemented?

If not, would you be willing to review a PR with the implemented trait?

Thank you for all the good work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions