Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A collection of quickie math functions. Nothing too fancy.
Python
branch: master

This branch is 1 commit ahead, 206 commits behind datadesk:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
calculate Removed Django dependency for parts of module that don't require it.
README.textile

README.textile

python-math

A collection of snippets I use to do a little math. Nothing fancy.

The mission

Make a single basket for all the math functions I use to do journalism
and, as it expands, try to translate everything out of numpy so I don’t
have to deploy its entire module to my production server.

Contains functions that calculate:

  • Decile rankings
  • ELFI (Ethnolinguistic Fractionalization Index)
  • Mean
  • Mean center
  • Median
  • Ordinal rank
  • Per capita rate
  • Per square mile rate
  • Percentage change
  • Percentage
  • Percentile
  • Standard competition rank
  • Standard deviation
  • Standard deviation distance
  • Standard deviation ellipses

Other utilities to:

  • Get a random point
  • Nudge identical points slightly apart

Dependencies

Something went wrong with that request. Please try again.