This does not answer my Question Calculate mean across dimension in a 2D array
import numpy as np
L1 = list()
L2 = []
L3 = [3,4,1,6,7,5]
L4 = [[2, 9, -5], [-1, 0, 4], [3, 1, 2]]
The goal is to add up the values in L4.
How do I iterate over this MD array? I tried
a = np.asarray(L4)
print(a)
for (x,y), value in np.ndenumerate(a):
print(x,y)