[SciPy-user] quantile function in scipy

David Cournapeau david at ar.media.kyoto-u.ac.jp
Sun Feb 24 00:58:36 EST 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