Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Namespace API for DataFrame/LazyFrame #60

Open
abhiaagarwal opened this issue Jan 20, 2024 · 0 comments
Open

Namespace API for DataFrame/LazyFrame #60

abhiaagarwal opened this issue Jan 20, 2024 · 0 comments

Comments

@abhiaagarwal
Copy link

Currently, Polars supports defining custom functions on the DataFrame namespace on the python side with pl.api.register_dataframe_namespace/pl.api.register_lazyframe_namespace. Would it be possible for pyo3-polars to support creating a custom DataFrame namespace with this same functionality, with the defined transformations living in rust?

For a somewhat abstract example, I have a function written in rust that takes a pl.DataFrame as an argument, loads a xgboost Booster, calculates a column, then returns the DataFrame. I want to expose this exact same functionality in Python by registering some custom namespace.

@abhiaagarwal abhiaagarwal changed the title Expressions API for DataFrame/LazyFrame Namespace API for DataFrame/LazyFrame Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant