numpy iterate over 2d array code example
Example: iterate over rows in numpy matrix python
import numpy
m = numpy.ones((3,5),dtype='int')
for row in m:
# do stuff with row
import numpy
m = numpy.ones((3,5),dtype='int')
for row in m:
# do stuff with row