I did so:
import numpy as np
#soma de todas as colunas de mat!
mat = np.arange(1,26).reshape(5,5)
print(mat)
lista =[]
for i in np.arange(0,len(mat)):
lista.append(np.sum(mat[0:,i:i+1]))
print(np.array(lista))
The output is correct:
[55 60 65 70 75]
Is there any better way to do it using some numpy function?