how to iterate over each element in a columns of pandas dataframe 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]))