statistics module
The standard library module for basic statistics such as mean, median, mode and standard deviation.
In more detail
statistics.mean([2, 4, 9]) is 5. It works on lists of numbers without any third-party package.
Related terms
- math module — The standard library module of mathematical functions and constants, such as sqrt, floor, ceil, sin and pi.
- standard library — The collection of modules that ships with a programming language, available without installing anything extra.
Taught in
- What A Program Really Is — Hands-on Python: Complete Video Course & Book
- How Python Runs Your Code — Hands-on Python: Complete Video Course & Book
- What Python Is, And Where It Came From — Hands-on Python: Complete Video Course & Book
- Playing Computer — Hands-on Python: Complete Video Course & Book
- Reading A Traceback Like A Professional — Hands-on Python: Complete Video Course & Book
- A Standard Library Tour — Hands-on Python: Complete Video Course & Book