In [2]: import numpy as np In [4]: test_array = np.arange(1, 11) test_array Out[4]: array([ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) Sum In [6]: test_array.sum(dtype=np.float) Out[6]: 55.0 In [9]: test_array = np.arange(1, 13).reshape(3,4) test_array.sum() Out[9]: 78 In [12]: print(test_array) test_array.sum(axis=1) #칼럼끼리 더한다 [[ 1 2 3 4] [ 5 6 7 8] [ 9 10 11 12]] Out[12]: array([10, 26, 42]) In [14]: tes..