Good, I have to do a matrix problem with the numpy but I can not find a way to fix it. I would appreciate your help. The problem is this:
Program a function sum_fila (mat) that given a numpy array of rank 2 mat (a matrix) return a numpy array with the sum of each of its rows.
Entry:
suma_fila(np.array([[1, 0, -1], [3, 4, 1]]))
Solution:
array([0, 8])