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
Using list comprehension, you can get all the columns names (header):
[column for column in df]