Skip to content

Mean() Source

Bases: Statistic

Arithmetic mean of the values.

Missing values are ignored.

Added in version 0.1.0

Examples:

import numdaplot as ndp

prices = ndp.Array.from_list([10.0, None, 30.0])
prices.compute(ndp.Mean()).to_value()
# 20.0