Get percentile of sequence without numpy
Project description
Find x-th percentile of a sequence without numpy
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
164e1c2c1f0d85a1528811b21253a055728af5368da59d667f3816084e88a8a3
|
|
| MD5 |
1ea9f6873a7071a4468bab12b4fb3458
|
|
| BLAKE2b-256 |
89f2cf3044c2e2df276526c03c82714c2d6bc56c02874db36facc1d2ade88543
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
584b2a8ec2ba89c79de143663ba24aa4b4b5b156af5cbb47022ec9cd2c65f730
|
|
| MD5 |
1727aa11b68039a0069c6d829899ebd3
|
|
| BLAKE2b-256 |
03b1cf75af68f6320ed7334b78586de4febe0f142f0a472df699039db8cff810
|