[SciPy-user] quantile function in scipy

David Cournapeau david@ar.media.kyoto-u.ac...
Sat Feb 23 23:58:36 CST 2008


Manu Hack wrote:
> Hi,
>
> I'd like to know if there is any function to find the quantiles, given
> two lists where one is the value and another the frequency.
>
> For example, v = [1, 2, 3], freq = [3, 2, 1], then I would like to
> have the quantiles for the samples: 1, 1, 1, 2, 2, 3.
>
> Have browsed around the doc of scipy.stats but didn't get any thing
> close.  Thanks a lot.
>
>   
Would scipy.stats.percentileofscore solve your problem ?

cheers,

David


More information about the SciPy-user mailing list