Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python sum of list axes

>>> np.sum([[0, 1], [0, 5]])
6
>>> np.sum([[0, 1], [0, 5]], axis=0)
array([0, 6])
>>> np.sum([[0, 1], [0, 5]], axis=1)
array([1, 5])

Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #python #sum #list #axes
ADD COMMENT
Topic
Name
2+3 =