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

后端 未结 19 1642
爱一瞬间的悲伤
爱一瞬间的悲伤 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:14

    I used these settings when scale of data is high.

    # environment settings: 
    pd.set_option('display.max_column',None)
    pd.set_option('display.max_rows',None)
    pd.set_option('display.max_seq_items',None)
    pd.set_option('display.max_colwidth', 500)
    pd.set_option('expand_frame_repr', True)
    

    You can refer to the documentation here

提交回复
热议问题