Skip to content
Discussion options

You must be logged in to vote

Some of that advice needs to be updated.

Things like np.mean will dispatch to dask.array.mean with recent enough versions of dask/numpy (see NEP-18). So dask="allowed" will work. This is easy to check: if the call to apply_ufunc ends up computing it means some function is not compatible with dask arrays. Either avoid that function or use dask="parallelized" if appropriate (the function can be applied independently on each block of the dask array, and does not need communication between blocks).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ahuang11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants