I have a dataframe that consist of hundreds of columns, and I need to see all column names.
What I did:
In[37]: data_all2.columns
T
To get all column name you can iterate over the data_all2.columns.
data_all2.columns
columns = data_all2.columns for col in columns: print col
You will get all column names. Or you can store all column names to another list variable and then print list.