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 details)

Uploaded Source

File details

Details for the file percentiles-0.2.2.tar.gz.

File metadata

  • Download URL: percentiles-0.2.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.10

File hashes

Hashes for percentiles-0.2.2.tar.gz
Algorithm Hash digest
SHA256 053f44742bc660c0f816d12327a987fb8f49cb2c76f1c4bc9c90e35105c6f8f7
MD5 8a44a3bba89b1406645cd76c32e2cf36
BLAKE2b-256 f7918752d930453d7d2fcae4fc95935910c3bb0d06ff37db43fdf4b78daf96b3

See more details on using hashes here.

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