Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Numpy
## Here order doesn't matter
a = np.arange(6).reshape(2,3)
for x in np.nditer(a, order='F'):
print (x,end=",")
#[Output]:
#0,3,1,4,2,5,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.