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

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






评论(0)


暂无数据
推荐帖子
2条评论
6条评论
7条评论