[Numpy-discussion] Re: Ways to achieve faster np.nanpercentile() calculation?

2022-09-23 Thread Aron Gergely
/xclim/blob/master/xclim/core/utils.py#L240 [2]https://gist.github.com/bzah/2a84d050b8a1aed1b40a2ed1526e1f12 [3]https://www.researchgate.net/publication/222105754_Sample_Quantiles_in_Statistical_Packages - Mail original - De: "Aron Gergely" À: "Discussion of Numerical Python&quo

[Numpy-discussion] Ways to achieve faster np.nanpercentile() calculation?

2022-09-16 Thread Aron Gergely
Hi all, On my system, np.nanpercentile()  is orders of magnitude (>100x) slower than np.percentile(). I use numpy 1.23.1 Wondering if there is a way to speed it up. I came across this workaround for 3D arrays: https://krstn.eu/np.nanpercentile()-there-has-to-be-a-faster-way/ But I would need