latimes-calculate¶
Some simple math we use to do journalism
Getting started¶
Install the latest package from pypi.
$ pip install latimes-calculate
Note
For most functions, there are no additional requirements. The exception is the small number of geospatial functions, which require GeoDjango.
Documentation¶
- Basic functions
- Adjusted-monthly value
- Age
- At percentile
- Benford’s Law
- Competition rank
- Date range
- Decile
- Ethnolinguistic Fractionalization Index
- Equal-sized breakpoints
- Margin of victory
- Mean (Average)
- Median
- Mode
- Ordinal rank
- Pearson’s r
- Per capita
- Per square mile
- Percentage
- Percentage change
- Percentile
- Range
- Split at breakpoints
- Standard deviation
- Summary statistics
- Variation coefficient
- Geospatial functions