I want to iterate over all elements of a 2D Numpy array. How can I do it without two for loops?
E.g.
>>> aa
array([[1, 2, 3],
[4, 5, 6],
[7, 8, 9]])
>>> for e in aa:
... print(e)
The above code prints the following:
[1 2 3]
[4 5 6]
[7 8 9]
But I want the following output: