ID EN
Statistics

geometric_mean

Python 3.11

Convert data to floats and compute the geometric mean.

Syntax

PYTHON
statistics.geometric_mean(data)

Examples

Example 1
PYTHON
>>> round(geometric_mean([54, 24, 36]), 1)
36.0

See Also

StatisticsError