2020-11-13
阅读量:
1957
python报no supported between instances of 'float' and 'str'的错误
一、问题描述
python报错:no supported between instances of 'float' and 'str'
二、问题解决
代码中有字符型和浮点型,需要运行代码转为整型
train_data.NumberOfDependents = train_data.NumberOfDependents.astype('int64')






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
0条评论