Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python Sum of an array in NumPy

import numpy as np
a=np.array([[1,4],[3,5]])
b=np.sum(a,axis=1)
print(b)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #Sum #array #NumPy
ADD COMMENT
Topic
Name
1+7 =