SyntaxFix
Write A Post
Hire A Developer
Questions
A workaround is to transpose the DataFrame and iterate over the rows.
DataFrame
for column_name, column in df.transpose().iterrows(): print column_name