statistics.geometric_mean(data)

Returns test


data??

REMARKS
* statistics module
* Convert data to floats and compute the geometric mean.
* The geometric mean indicates the central tendency or typical value of the data using the product of the values (as opposed to the arithmetic mean which uses their sum).
* Raises a StatisticsError if the input dataset is empty, if it contains a zero, or if it contains a negative value. The data may be a sequence or iterable.

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

© 2025 Better Solutions Limited. All Rights Reserved. © 2025 Better Solutions Limited Top