pydata / xarray

N-D labeled arrays and datasets in Python
https://xarray.dev
Apache License 2.0
3.63k stars 1.09k forks source link

Add `.quantile(foo=quantiles)` API? #9805

Open max-sixty opened 1 day ago

max-sixty commented 1 day ago

Is your feature request related to a problem?

Many of our methods allow the equivalent of .shift(foo=5), where foo is a dimension name.

But not .quantile! That requires .quantile(dim="foo", [0,0.5,1])

Describe the solution you'd like

I guess this is a missing thing rather than a deliberate choice, is that right?

Describe alternatives you've considered

No response

Additional context

No response