我不能在 spyder 上运行 for 循环并总是得到不完整的输入错误的原因吗?

问题描述 投票:0回答:0
feature_names = []
for col in dataset.iloc[:,3:]:
    if col != "outcome":
        feature_names.append(col)
print (feature_names)

#I get the error below

for col in dataset.iloc[:,3:]: 单元格输入 [423],第 1 行 对于 dataset.iloc[:,3:] 中的 col: ^ 语法错误:输入不完整"

python machine-learning pca
© www.soinside.com 2019 - 2024. All rights reserved.