to iterate through columns in python 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]))