PyDocs

Nav

Numeric and Mathematical Modules

fmean

statistics

function · Added in 3.8 (source)
  • fmean(data, weights=None)
Convert data to floats and compute the arithmetic mean.

This runs faster than the mean() function and it always returns a float.
If the input dataset is empty, it raises a StatisticsError.

>>> fmean([3.5, 4.0, 5.25])
4.25
Changed in 3.11
  • 3.11: Added support for weights.
1 Example
>>> fmean([3.5, 4.0, 5.25])
4.25
from the Python docs
See Also
No see-alsos for statistics/fmean
0 Notes
No notes for fmean