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

median on dask arrays #2999

Closed
dcherian opened this issue Jun 5, 2019 · 3 comments · Fixed by #3604
Closed

median on dask arrays #2999

dcherian opened this issue Jun 5, 2019 · 3 comments · Fixed by #3604

Comments

@dcherian
Copy link
Contributor

dcherian commented Jun 5, 2019

Dask has updated it's percentile, quantile implementation: dask/dask#4677

Can we now update our median method to work with dask arrays?

@carolinarias
Copy link

Is anyone working on adding the median method?

@shoyer
Copy link
Member

shoyer commented Jul 29, 2019

Yes, we could do this as long as we’re careful to default to the new algorithms. See also #1524 (comment)

@stsievert
Copy link

I have a median method over in dask/dask#3819

dcherian added a commit to dcherian/xarray that referenced this issue Dec 7, 2019
dcherian added a commit that referenced this issue Dec 30, 2019
* Add nanmedian for dask arrays

Close #2999

* Fix tests.

* fix import

* Make sure that we don't rechunk the entire variable to one chunk

by reducing over all dimensions. Dask raises an error when axis=None
but not when axis=range(a.ndim).

* fix tests.

* Update whats-new.rst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants