-
type() 查看数据类型
-
.astype() 转换数据类型
对数据框里的某些列进行数据类型转换。(team,W,L 为列名)
例:df.astype({‘team’: str,‘W’: int, ‘L’: int}) -
.dtype() 查看数组的数据类型
Numpy:.astype() 、 .dtype() 与 type()
于 2022-01-17 09:10:54 首次发布
type() 查看数据类型
.astype() 转换数据类型
对数据框里的某些列进行数据类型转换。(team,W,L 为列名)
例:df.astype({‘team’: str,‘W’: int, ‘L’: int})
.dtype() 查看数组的数据类型