-
|
I have a |
Beta Was this translation helpful? Give feedback.
Answered by
jorenham
Jan 13, 2026
Replies: 1 comment
-
|
You could use import numpy as np
a1 = np.array([1,1,1])
a2 = np.array([1,2,3])
print(np.sum([a1, a2], axis=0)) # [2 3 4] |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Xoriun
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could use
numpy.sumfor this (docs):