报错类型 python TypeError: ufunc ‘subtract’ did not contain a loop with signature matching types dtype(‘S32’) 解决方法 原代码: y = df['target'] X = df.drop('target', axis=1) 修改后的代码: y = df['target'].values X = df.drop('target', axis=1).values