Descriptive Statistcs for Python - simple library that implements mean, variance, std deviation, percentile over lists of numbers
Project description
Port of https://github.com/thirtysixthspan/descriptive_statistics to python. I’ve encapsulated it in an Enum class as I wasn’t intending to modify the original list. My main use will be at https://github.com/gleicon/pymetrics package.
- Install
$ python setup install
Basic usage:
from py_descriptive_statistics import Enum enum = Enum([2,6,9,3,5,1,8,3,6,9,2])
print enum.number() print enum.sum() print enum.mean() print enum.median() print enum.variance() print enum.standard_deviation() print enum.percentile(70) print enum.percentile(95) print enum.percentile(99)
- To run tests
$ cd tests $ python pdstests.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file py_descriptive_statistics-0.2.tar.gz.
File metadata
- Download URL: py_descriptive_statistics-0.2.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18526e9368302f74c463f4dc92d05d1e7f0a07cf40850269ca9c3184196d4a13
|
|
| MD5 |
5b7a7199cf049ea9e1ff48da34006867
|
|
| BLAKE2b-256 |
3299a06cd214de844c5b33f48127270b3fdd8aafbb8f3cb100cf0591dacf0d26
|