I\'m sure this is simple, but as a complete newbie to python, I\'m having trouble figuring out how to iterate over variables in a pandas dataframe and run a regress
pandas
A workaround is to transpose the DataFrame and iterate over the rows.
DataFrame
for column_name, column in df.transpose().iterrows(): print column_name