这个错误是因为传入了一维序列,当需要转换某一列特征时使用scaler.fit_transform(data["列名"])就会提示上述错误,
使用scaler.fit_transform(data[["列名"]])就不会报错了,如: