NumPy

Previous topic

numpy.ndarray.std

Next topic

numpy.ndarray.swapaxes

numpy.ndarray.sum

method

ndarray.sum(axis=None, dtype=None, out=None, keepdims=False, initial=0, where=True)

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

Refer to numpy.sum for full documentation.

See also

numpy.sum

equivalent function