[SciPy-User] equivalent of R quantile() function in scipy

servant mathieu servant.mathieu at gmail.com
Tue Dec 4 10:55:37 EST 2012


Dear list,

>From an array X of values, the quantile () function in R can return the
score at any given specified quantile : e.g., quant_values = quantile (X,
probs = c(.1, .3, .5, .7, .9)).

The scoreatpercentile() function in scipy seems to to the same stuff.
However, you can specify only one quantile per function call e.g.
quant_value = scoreatpercentile (X, per = 10) etc..

Is it possible to return more than one quantile per function call?

Cheers,
Mathieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20121204/eb74cd41/attachment.html>


More information about the SciPy-User mailing list