How do I expand the output display to see more columns of a pandas DataFrame?

后端 未结 19 1905
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 00:37

Is there a way to widen the display of output in either interactive or script-execution mode?

Specifically, I am using the describe() function on a pand

19条回答
  •  春和景丽
    2020-11-22 01:12

    Only using these 3 lines worked for me:

    pd.set_option('display.max_columns', None)  
    pd.set_option('display.expand_frame_repr', False)
    pd.set_option('max_colwidth', -1)
    

    Anaconda / Python 3.6.5 / pandas: 0.23.0 / Visual Studio Code 1.26

提交回复
热议问题