pd.set_option参数设置

pd.set_option('display.float_format',lambda x: '%.2f'%x)
pd.set_option('display.expand_frame_repr',False)
#显示所有列
pd.set_option('display.max_columns', None)
#显示所有行
#pd.set_option('display.max_rows', None)
pd.set_eng_float_format(accuracy=1, use_eng_prefix=True)--一位小数,结尾用k、M表示

 

 

 

posted @ 2020-03-20 14:16  Bambo0  阅读(1621)  评论(0编辑  收藏  举报