Skip to main content

Get percentile of sequence without numpy

Project description

Find x-th percentile of a sequence without numpy

codecov CircleCI

Because sometimes you need one function only.

Install

pip install percentiles

Use

>>> import percentiles
>>> percentiles.percentile([100, 120, 130, 1000], 75)
347.5
>>> from numpy import percentile
>>> percentile([100, 120, 130, 1000], 75)
347.5

Credits

Original code was posted on http://code.activestate.com/recipes/511478-finding-the-percentile-of-the-values/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

percentiles-0.2.2.tar.gz (4.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page