Created
February 15, 2019 12:30
-
-
Save Robofied/de0ff9723f91fb02226eb14a2c071601 to your computer and use it in GitHub Desktop.
Numpy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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