First, I tried to find an answer to my question ( which I think is pretty basic) searching in google and in the site, but nothing came up.
I'm trying to get the rows from a numpy matrix, but I can't. For example if I use this:
result = numpy.matrix([[11, 12, 13],
[21, 22, 23],
[31, 32, 33]])
for p in result:
print(p[0])
prints this:
[[11 12 13]]
[[21 22 23]]
[[31 32 33]]
The same if I use just p
What I have to do to access every row? numpy.nditer(result)
prints an array, and I need every row to perform some operations.