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

Enhance dataset.where to wrap a function that takes **kwargs #28

Open
richardhathaway-8451 opened this issue Feb 25, 2025 · 1 comment

Comments

@richardhathaway-8451
Copy link

richardhathaway-8451 commented Feb 25, 2025

Enable a way to use dataset.where to wrap a function that takes **kwargs. For example the code below tries to pass b as a keyword arg and produces this error: TypeError: Cannot lift function <function foo at ...> with non-defaulted parameters.

def foo(a, **kwargs):
    ...

my_dataset = dataset.where(
    a = Option("X", 1),
    b = Option("Y", 2)
).wrap(foo)
@austinwarner-8451
Copy link
Collaborator

Added this to feature/dataset-kwargs

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

2 participants