df.descripe()结果的类型-python

df.descripe()结果的类型-python,python,pandas,Python,Pandas,如图所示,“flags”列的数据类型为int64。但是,当我使用flags.descripe()时,数据类型是float64。我想知道这是为什么,以及如何获得descripe()的正常结果 标志。descripe()是一个系列。所有系列都有一个数据类型。由于此系列包括标准偏差和平均值等值,这些值通常是浮点数,因此flags.descripe()dytpe是一种浮点数据类型。因此,即使flag.dtype是int64,flags.descripe().dtype是float64flags.desc

如图所示,“flags”列的数据类型为int64。但是,当我使用flags.descripe()时,数据类型是float64。我想知道这是为什么,以及如何获得descripe()的正常结果


标志。descripe()
是一个系列。所有系列都有一个数据类型。由于此系列包括标准偏差和平均值等值,这些值通常是浮点数,因此
flags.descripe()
dytpe是一种浮点数据类型。因此,即使
flag.dtype
int64
flags.descripe().dtype
float64
flags.descripe()
是一个系列。所有系列都有一个数据类型。由于此系列包括标准偏差和平均值等值,这些值通常是浮点数,因此
flags.descripe()
dytpe是一种浮点数据类型。因此,即使
flag.dtype
int64
flags.descripe().dtype
float64
descripe
为该列返回一些摘要统计信息,但它不是该列的数据类型,而是该列的摘要统计信息
descripe
为该列返回一些摘要统计信息,这不是该列的数据类型,而是该列的汇总统计信息Hi~我希望9.537169e-02这样的数字是0.095这样的常用浮点格式,我应该怎么做才能得到它?使用
pd.options.display.float_format='{.3f}'。format
to。Hi~我希望9.537169e-02这样的数字是0.095这样的常用浮点格式,我应该怎么做才能得到它呢?使用
pd.options.display.float_format='{.3f}'。format