Python Statistics

Notes on the standard-library statistics module.

multimode()

from statistic import multimode
print(s.multimode([1, 1, 2, 2]))
 
>> [1, 2]

Open questions

  • Notion source only had one entry (modes). Worth growing this with mean, median, mode, pstdev, stdev, variance, etc. as they come up — or switch to numpy/pandas/scipy.stats for serious work.