Answers for "Python Sum of an array in NumPy"

0

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)
Posted by: Guest on April-21-2022

Python Answers by Framework

Browse Popular Code Answers by Language