I am trying to print rows of a dataframe one by one. I only manage to loop over the columns instead of the rows:
first I am importing from a csv:
table_csv = pd.read_csv(r'C:\Users\xxx\Desktop\table.csv',sep=';', error_bad_lines=False)
Next, I convert into a datframe using pandas:
table_dataframe = DataFrame(table_csv)
I then start the for loop as follows:
for row in table_dataframe:
print(row)
It however loops over the columns instead of the instead over the row. However i need to perform alterations on rows. Does anybody know where this goes wrong or has an alternative solution?