1for name, values in df.iteritems():
2 print('{name}: {value}'.format(name=name, value=values[0]))
1# Iterate over two given columns only from the dataframe
2for column in empDfObj[['Name', 'City']]:
3 # Select column contents by column name using [] operator
4 columnSeriesObj = empDfObj[column]
5 print('Colunm Name : ', column)
6 print('Column Contents : ', columnSeriesObj.values)
7