I want to know how to get a sum of values in a 3x3 NumPy array with a loop.
For example:
[[1,2,3],[4,5,6],[7,8,9]]
The output should be [6,15,24].
I want to know how to get a sum of values in a 3x3 NumPy array with a loop.
For example:
[[1,2,3],[4,5,6],[7,8,9]]
The output should be [6,15,24].