机器学习之支持向量机实战
import pandas as pd
data = pd.read_csv("文件路径")
data.head()
data["列名"].value_counts()#统计region列中值的数量
data.loc[data["列名"] == "被替换值","列名"] = "替换值"
data['color'].astype("float64")#类型转换int64转换为float64
#1、读取数据集
import pandas as pd
wine = pd.read_csv('.
原创
2021-11-20 00:21:56 ·
405 阅读 ·
0 评论