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

Allow a lambda for the other param to where #8255

Closed
max-sixty opened this issue Sep 30, 2023 · 1 comment
Closed

Allow a lambda for the other param to where #8255

max-sixty opened this issue Sep 30, 2023 · 1 comment

Comments

@max-sixty
Copy link
Collaborator

max-sixty commented Sep 30, 2023

Is your feature request related to a problem?

Currently we allow:

da.where(lambda x: x.foo == 5)

...but we don't allow:

da.where(lambda x: x.foo == 5, lambda x: x - x.shift(1))

...which would be nice

Describe the solution you'd like

No response

Describe alternatives you've considered

I don't think this offers many downsides — it's not like we want to fill the array with a callable object.

Additional context

No response

@max-sixty
Copy link
Collaborator Author

#8256

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants