上一页 1 2 3 4 5 6 7 ··· 19 下一页
摘要: #knn介绍 更多参考百度介绍 #下面测试一张新的照片 #模型保存和运用 阅读全文
posted @ 2019-07-04 17:41 追风zz 阅读(611) 评论(0) 推荐(0) 编辑
摘要: # # 阅读全文
posted @ 2019-07-04 16:44 追风zz 阅读(311) 评论(0) 推荐(0) 编辑
摘要: # # sklearn #特征数据 feature = near_city_dist.reshape(-1,1) #目标数据 target = near_city_temp print('真实值',target) print('预测值',linner.predict(feature)) 阅读全文
posted @ 2019-07-04 12:26 追风zz 阅读(364) 评论(0) 推荐(0) 编辑
摘要: # 一个图像处理包 1 连续调多次plot plt.plot(x,y) plt.plot(x+2,y-1) 2 一个plot函数传多组xy plt.plot(x,y,x+2,y-1) 将多个曲线图绘制在一个table区域中:对象形式创建表图 a=plt.subplot(row,col,loc) 创建 阅读全文
posted @ 2019-07-04 10:02 追风zz 阅读(205) 评论(0) 推荐(0) 编辑
摘要: #US 大选的数据分析 data['contbr_occupation'] == 'DISABLED VETERAN' #返回布尔值old_bing = data.loc[data['contbr_occupation'] == 'DISABLED VETERAN']old_bingr3 = old 阅读全文
posted @ 2019-07-03 13:51 追风zz 阅读(304) 评论(0) 推荐(0) 编辑
摘要: # 1 删除重复元素 2 映射 replace 代替 s = Series(data=[3,4,5,6,7,8]) s.replace(3,'s') #新数据 原数据不变 s.replace([4,5],['sx','zc']) #多值替换 replace参数说明: method:对指定的值使用相邻 阅读全文
posted @ 2019-07-02 23:31 追风zz 阅读(233) 评论(0) 推荐(0) 编辑
摘要: # concat # merge 阅读全文
posted @ 2019-07-02 11:02 追风zz 阅读(193) 评论(0) 推荐(0) 编辑
摘要: # tushare 财经数据接口包 #输出该股票所有收盘比开盘上涨3%以上的日期# (收盘-开盘)/开盘 > 0.03indexs = (data['close']-data['open'])/data['open'] > 0.03data.loc[indexs].index #拿到具体时间 #输出 阅读全文
posted @ 2019-07-01 20:38 追风zz 阅读(410) 评论(0) 推荐(0) 编辑
摘要: # 阅读全文
posted @ 2019-07-01 20:01 追风zz 阅读(171) 评论(0) 推荐(0) 编辑
摘要: # # 导包 import numpy as np import pandas as pd from pandas import Series,DataFrame dic1={ 'name':['tom','jay','helly'], 'age':[11,12,33], 'classRoom':[ 阅读全文
posted @ 2019-06-28 21:10 追风zz 阅读(110) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 19 下一页