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

field.where functionality #224

Open
atbenmurray opened this issue Nov 15, 2021 · 0 comments · May be fixed by #298
Open

field.where functionality #224

atbenmurray opened this issue Nov 15, 2021 · 0 comments · May be fixed by #298
Assignees

Comments

@atbenmurray
Copy link
Member

atbenmurray commented Nov 15, 2021

exetera needs a where function that carries out the numpy where functionality. This should probably be implemented in the form of exetera.where(a_field = 'foo', 'bar', a_field).
We could also potentially expose this functionality in other ways, such as a_field.where() although that doesn't mirror the numpy api

a = exetera.where(b == 2, 1, 0) # memory field
df['a'] = exetera.where(b == 2, 1, 0) # hdf5 field

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 a pull request may close this issue.

2 participants