摘要: [1 0 0 0 2 0 1 1 0 0 1 1 2 1 2 2 0 1 2 1 2 2 0 0 1 1 2 1 2 1 0 0 2 0 1 1 0 0 1 2 2 0 1 2 2] KNeighborsClassifier(algorithm='auto', leaf_size=30, metri 阅读全文
posted @ 2019-09-03 16:17 zheng1076 阅读(1298) 评论(1) 推荐(0) 编辑
摘要: 1 通过figure创建画布 num=None, 图编号 figsize=None, 图大小 dpi=None, 图分辨率 facecolor=None, 背景颜色 edgecolor=None, 边框颜色 2 通过subplot创建单个子图 [] 3 通过subplots创建多个子图 4 通过ad 阅读全文
posted @ 2019-09-03 15:53 zheng1076 阅读(1156) 评论(0) 推荐(0) 编辑
摘要: pandas series:一维数据结构 dataframe:二维数据结构 Series方式 参数说明: data index 索引 name 名称 copy 是否复制 dtype 数据类型 0 1 1 2 2 3 dtype: int64 a 1 b 2 c 3 dtype: int64 2001 阅读全文
posted @ 2019-09-03 15:52 zheng1076 阅读(845) 评论(0) 推荐(0) 编辑
摘要: numpy_learn 重要特点:N维数组对象,即ndarray对象 ndarray对象中存储的数据类型要是一致的 array([[ 0, 1, 2, 3], [ 4, 5, 6, 7], [ 8, 9, 10, 11]]) 2 (3, 4) 12 dtype('int64') 8 创建Numpy对 阅读全文
posted @ 2019-09-03 15:45 zheng1076 阅读(193) 评论(0) 推荐(0) 编辑