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

feat: support kwargs for field functions #62

Merged
merged 2 commits into from
Jan 24, 2024
Merged

feat: support kwargs for field functions #62

merged 2 commits into from
Jan 24, 2024

Conversation

ritchie46
Copy link
Member

@ritchie46 ritchie46 commented Jan 23, 2024

closes #58

We cannot introspect the passed function so we must give it a new name. You must pass:

#[polars_expr(output_type_func_with_kwargs=<function_name>)]

Upstream changes; pola-rs/polars#13944

@ritchie46 ritchie46 merged commit 870da1e into main Jan 24, 2024
2 checks passed
@ritchie46 ritchie46 deleted the dev branch January 24, 2024 09:41
@ion-elgreco
Copy link

@ritchie46 👀ooh nice

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

Successfully merging this pull request may close these issues.

How to pass kwarg to func output type
2 participants