nditer can be used to iterate through numpy array in variety of ways. C style and F style iteration is possible using flags in nditer. You can also iterate two broadcastable arrays concurrently using nditer | numpy nditer
Topics that are covered in this Python Video:
0:00 Overview
0:41 Run for loop
1:16 Use flatten() function on for loop
1:41 numpy function nditer() function
3:34 supply flags on for loop
4:04 op_flag on for loop
6:09 iterate two arrays
Do you want to learn technology from me? Check https://codebasics.io/ for my affordable video courses.
https://github.com/codebasics/py/blob/master/numpy/nditer.ipynb
Website: https://codebasics.io/
Facebook: https://www.facebook.com/codebasicshub
Twitter: https://twitter.com/codebasicshub
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.