代码执行报错
feature_names = ['pregnant']
X = pima[feature_names]
y = pima.label
错误信息:
错误①:KeyError: "None of [Index(['pregnant'], dtype='object')] are in the [columns]"
错误②:AttributeError: 'DataFrame' object has no attribute 'label'
feature_names = ['pregnant']
X = pima[feature_names]
y = pima.label
错误信息:
错误①:KeyError: "None of [Index(['pregnant'], dtype='object')] are in the [columns]"
错误②:AttributeError: 'DataFrame' object has no attribute 'label'
2020-10-10
举报