ndarray.sum

ndarray.sum(self, axis=None, dtype=None, out=None, keepdims=False)

Return the sum of the array elements over the given axis.