热线电话:13121318867

登录
2020-03-14 阅读量: 689
python报错

一、问题描述

python报错:no supported between instances of 'float' and 'str'

二、问题解决

代码中有字符型和浮点型,需要运行代码转为整型

train_data.NumberOfDependents = train_data.NumberOfDependents.astype('int64')

28.5714
2
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子