热门

最新

红包

立Flag

投票

同城

我的

发布
m0_69745273
conda番茄
3 年前
truem0_69745273

for col in cols_with_missing:
X_train_plus[col + '_was_missing'] = X_train_plus[col].isnull()
X_valid_plus[col + '_was_missing'] = X_valid_plus[col].isnull()
报错:unsupported operand type(s) for +: 'int' and 'str'
修改:for col in cols_missing:
X[str(col) + '_was_missing'] = X[col].isnull()

CSDN App 扫码分享
分享
1
点赞
打赏
  • 复制链接
  • 举报
下一条:
转发别人的k8s
立即登录