【发布时间】:2021-03-03 05:39:15
【问题描述】:
X = scaler.fit_transform(np.array(data.iloc[:, :-1], dtype = float))
TypeError: only size-1 arrays can be converted to Python scalars
我有 8 列的数据框,有些列包含超过 1000 个样本的数组。现在我面临类型错误。请帮助我将 n 维数组数据作为输入进行拟合
【问题讨论】:
标签: python scikit-learn