热线电话:13121318867

登录
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')


48.0073
0
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子