Skip to content

Instantly share code, notes, and snippets.

@vinaykudari
Created July 24, 2018 11:10
Show Gist options
  • Save vinaykudari/2528129d378cbd52accd885fc60b73ea to your computer and use it in GitHub Desktop.
Save vinaykudari/2528129d378cbd52accd885fc60b73ea to your computer and use it in GitHub Desktop.
nditer
a = np.arange(4).reshape((2,2))
for i in np.nditer(a):
print(i)
>> 0
1
2
3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment