Question

In Python, how to iterate over rows in a DataFrame with a for loop?


Annonce
Ad

Answer

for index, row in data.iterrows():
	# Do something with row and index, for example:
	print (row['col_name']+' @ '+str(index) )


[source]
# ID Query