method
ndarray.
sum
Return the sum of the array elements over the given axis.
Refer to numpy.sum for full documentation.
numpy.sum
See also
equivalent function