Skip to content

Sum() Source

Bases: Statistic

Sum of the values.

Missing values are ignored.

Added in version 0.1.0

Examples:

import numdaplot as ndp

amounts = ndp.Array.from_list([10.5, None, 4.5])
amounts.compute(ndp.Sum()).to_value()
# 15.0