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

Implementing item method for Dask Arrays #2959

Open
jakirkham opened this issue Dec 4, 2017 · 3 comments · May be fixed by #3630
Open

Implementing item method for Dask Arrays #2959

jakirkham opened this issue Dec 4, 2017 · 3 comments · May be fixed by #3630
Labels

Comments

@jakirkham
Copy link
Member

For NumPy Arrays, item is a convenience method that returns a scalar from a NumPy array with a single value. If the NumPy array does not have a single value, it errors out. Would be nice to have a similar method for Dask Arrays.

@shoyer
Copy link
Member

shoyer commented Dec 4, 2017

Should it return a computed Python scalar or a dask.delayed object?

@jakirkham
Copy link
Member Author

IMHO it should be some lazy object (ideally a Dask Array). It's pretty easy to compute if one wants to.

@jakirkham jakirkham linked a pull request Jun 17, 2018 that will close this issue
2 tasks
@jakirkham
Copy link
Member Author

Addressing with PR ( #3630 ).

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

Successfully merging a pull request may close this issue.

2 participants