numpy array for loop and back to list 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