警告内容:
FutureWarning: reshape is deprecated and will raise in a subsequent release. Please use .values.reshape(…) instead after removing the cwd from sys.path.
解决:
1.更新库
直接更新了所有库,哈哈
conda update --all
2.按照警告内容修改
data[‘normAmount’] = StandardScaler().fit_transform(data[‘Amount’].reshape(-1, 1))
改为
data[‘normAmount’] = StandardScaler().fit_transform(data[‘Amount’].values.reshape(-1, 1))