Add median along an axis with automatic rechunking#5575
Add median along an axis with automatic rechunking#5575mrocklin merged 4 commits intodask:masterfrom
Conversation
This rechunks the array along the axes to be medianed and then performs a blockwise call to `np.median`. Fixes dask#5062 This was specifically asked for by astronomers.
|
@TomAugspurger any thoughts on this? |
TomAugspurger
left a comment
There was a problem hiding this comment.
Seems reasonable. Are there other places where we automatically rechunk?
Just to confirm, if our auto rechunking results in many more chunks, the user would get the usual warning, right? That seems like the best behavior.
A note in the docstring that this rechunks would be nice I think. If you use derived_from instead of wraps I think it's included automatically.
Yes, but I think that this is unlikely in most cases. The rechunking algorithms are decent.
Done |
This rechunks the array along the axes to be medianed and then performs a
blockwise call to
np.median.Fixes #5062
This was specifically asked for by astronomers.
black dask/flake8 dask