How to show all of columns name on pandas dataframe?

后端 未结 13 2127
既然无缘
既然无缘 2020-12-07 08:24

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

13条回答
  •  离开以前
    2020-12-07 08:55

    Not a conventional answer, but I guess you could transpose the dataframe to look at the rows instead of the columns. I use this because I find looking at rows more 'intuitional' than looking at columns:

    data_all2.T
    

    This should let you view all the rows. This action is not permanent, it just lets you view the transposed version of the dataframe.

    If the rows are still truncated, just use print(data_all2.T) to view everything.

提交回复
热议问题