How do I calculate percentiles with python/numpy?

Posted by Uri on Stack Overflow See other posts from Stack Overflow or by Uri
Published on 2010-03-03T20:21:13Z Indexed on 2010/05/02 11:58 UTC
Read the original article Hit count: 286

Filed under:
|
|

Is there a convenient way to calculate percentiles for a sequence or single-dimensional numpy array?

I am looking for something similar to Excel's percentile function.

I looked in NumPy's statistics reference, and couldn't find this. All I could find is the median (50th percentile), but not something more specific.

© Stack Overflow or respective owner

Related posts about python

Related posts about numpy