Skip to main content

Get percentile of sequence without numpy

Project description

Find x-th percentile of a sequence without numpy

codecov

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-1.0.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

percentiles-1.0.1-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: percentiles-1.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for percentiles-1.0.1.tar.gz
Algorithm Hash digest
SHA256 164e1c2c1f0d85a1528811b21253a055728af5368da59d667f3816084e88a8a3
MD5 1ea9f6873a7071a4468bab12b4fb3458
BLAKE2b-256 89f2cf3044c2e2df276526c03c82714c2d6bc56c02874db36facc1d2ade88543

See more details on using hashes here.

File details

Details for the file percentiles-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: percentiles-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for percentiles-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 584b2a8ec2ba89c79de143663ba24aa4b4b5b156af5cbb47022ec9cd2c65f730
MD5 1727aa11b68039a0069c6d829899ebd3
BLAKE2b-256 03b1cf75af68f6320ed7334b78586de4febe0f142f0a472df699039db8cff810

See more details on using hashes here.

Supported by

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