python数据挖掘与实战 第四章 数据预处理 数据离散化 代码纠错
在python数据挖掘与实战的第四章代码4-3的数据离散化中发现问题,纠正后代码如下:
标注了改动1.2.3.4.5
# -*- coding: utf-8 -*-
# 数据规范化
import pandas as pd
datafile = r'D:\mechine learning\Data Analysis and Mining\chapter4\demo\data\discretization_data.xls' # 参数初始化
data = pd.read_excel(datafile)
原创
2021-06-03 17:40:00 ·
432 阅读 ·
1 评论