Skip to main content

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

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_descriptive_statistics-0.2.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