Answers for "hpw to find the sum of each item in an aray numpy"

1

sum along axis python

import numpy as np
matrix=np.ones((10,10))
print(matrix.sum(axis=0))
print(matrix.sum(axis=1))
Posted by: Guest on March-21-2020

Code answers related to "hpw to find the sum of each item in an aray numpy"

Python Answers by Framework

Browse Popular Code Answers by Language