二分赋值法: data["Sex"]=(data["Sex"]=="male").astype("int")
data.loc[:,"Sex"]所有的行 全Sex列
data.loc[:,3]所有的行 错误写法
data.iloc[:,3]第三列
二分赋值法: data["Sex"]=(data["Sex"]=="male").astype("int")
data.loc[:,"Sex"]所有的行 全Sex列
data.loc[:,3]所有的行 错误写法
data.iloc[:,3]第三列
下一篇:机器学习回归算法检验标准
一、选择题:每小题 2 分,共 20 题,共40分。1、下列选项中,哪个无法通过正则表达式 "^(ab|b)+$" 的验证。( ) A、"abab"
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M