Contact: aviboots(AT)netvision.net.il
39,861 questions
51,782 answers
573 users
import numpy as np arr = np.array([[3, 3], [2, 7], [1, 3], [12, 2]]) sum_arr_rows = arr.sum(1) print(sum_arr_rows) ''' run: [ 6 9 4 14] '''