python iterate or loop each row of a dataframe

description: python iterate a dataframe

loop each row of a dataframe

1
2
3
4
5
6
7
8
import pandas
data = pandas.DataFrame([[1,2,3],[4,5,6],[7,8,9]])
for row in data.values:
print(row)
# output
# [1 2 3]
# [4 5 6]
# [7 8 9]

more on search4fan.github.io