How to show all of columns name on pandas dataframe?

后端 未结 13 2151
既然无缘
既然无缘 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:47

    I know it is a repetition but I always end up copy pasting and modifying YOLO's answer:

    pd.set_option('display.max_columns', 500)
    pd.set_option('display.max_rows', 500)
    

提交回复
热议问题