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表示

 

猜你喜欢

转载自www.cnblogs.com/cxxBoo/p/12531437.html