Get a list from Pandas DataFrame column headers
I want to get a list of the column headers from a Pandas DataFrame. The DataFrame will come from user input, so I won’t know how many columns there will be or what they will be called. For example, if I’m given a DataFrame like this: >>> my_dataframe y gdp cap 0 1 2 5 … Read more