pandas设置不用科学计数法

import numpy as np
np.set_printoptions(suppress=True)
pd.set_option(‘display.float_format’, lambda x: ‘%.2f’ % x) #为了直观的显示数字,不采用科学计数法
train_df.describe()

猜你喜欢

转载自blog.csdn.net/zanlinux/article/details/108404235