how to iterate through pandas dataframe column code example
Example: pandas iterate columns
for name, values in df.iteritems():
print('{name}: {value}'.format(name=name, value=values[0]))
for name, values in df.iteritems():
print('{name}: {value}'.format(name=name, value=values[0]))