how to iterate over values of numpy array

Solutions on MaxInterview for how to iterate over values of numpy array by the best coders in the world

showing results for - "how to iterate over values of numpy array"
Lucy
22 May 2018
1>>> a = np.arange(6).reshape(2,3)
2>>> for x in np.nditer(a.T):
3...     print(x, end=' ')
4...
50 1 2 3 4 5
6