Answers for "how to iterate over values of numpy array"

0

how to iterate over values of numpy array

>>> a = np.arange(6).reshape(2,3)
>>> for x in np.nditer(a.T):
...     print(x, end=' ')
...
0 1 2 3 4 5
Posted by: Guest on July-25-2021

Code answers related to "how to iterate over values of numpy array"

Python Answers by Framework

Browse Popular Code Answers by Language