Skip to main content

Returns the percentile of a value. Returns the same values as the Excel PERCENTRANK and PERCENTRANK.INC functions.

Project description

# percentile_rank

Returns the percentile of a value. Returns the same values as the Excel PERCENTRANK and PERCENTRANK.INC functions.

## Usage

` pip install percentile_rank from percentile_rank import percent_rank percent_rank([1, 5, 20, 50, 55, 60, 70, 80, 90, 100], 44) `

## Credits

Initially based on the answer provided by xlecoustillier On Stack Overflow: https://stackoverflow.com/questions/17919263/what-is-the-excel-percentrank-algorithm-in-c

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

percentile_rank-1.0.1.tar.gz (1.8 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