Getting wider output in PyCharm's built-in console

前端 未结 4 2069
情歌与酒
情歌与酒 2021-01-30 06:54

I\'m relatively new to using the PyCharm IDE, and have been unable to find a way to better shape the output when in a built-in console session. I\'m typically working with prett

4条回答
  •  醉酒成梦
    2021-01-30 07:14

    def pd_set_df_view_options(max_rows=1000, max_columns=350, display_width=320):
    
        # Show more than 10 or 20 rows when a dataframe comes back.
        pd.set_option('display.max_rows', max_rows) 
        # Columns displayed in debug view
        pd.set_option('display.max_columns', max_columns)
    
        pd.set_option('display.width', display_width)
    
    # run
    pd_set_df_view_options(max_rows=1000, max_columns=350, display_width=320)
    

提交回复
热议问题