自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 python爬取淘宝数据

python爬取淘宝数据淘宝评论淘宝评论打开淘宝,选择打开需要爬取的商品的评论。在谷歌浏览器选择开发者工具,选择network,找到list_detail_rate.htm?itemId=624466733121,点击headers、previews,可以看见相应的评论数据。爬取一页屏评论代码如下import reimport requestsheaders = { 'Referer': '在headers中', 'User-Agent': '在

2021-11-28 20:57:44 5150

原创 pmp备考经验

pmp备考经验前言为什么备考pmp考过程中的注意事项备考建议和忠告前言首次备考pmp,本次考试成绩为5A。从2月开始报名,6月份考试日期延期至9月份。由于边工作边备考,中间复习状态是断断续续,因此能取得5A的成绩,十分感谢科科过老师们的指导和自己的坚持。为什么备考pmp提升自身的能力,为履历添砖加瓦。本身是数学专业,目前是银行的一名项目经理,希望进一步提升项目管理水平,将自己日常的项目管理经验和pmp知识结合,实现知行合一,所以参加pmp考试。考过程中的注意事项由于是边工作边备考,所以我较早进

2021-11-22 21:10:41 372

原创 利用tensorflow搭建神经网络

利用tensorflow搭建神经网络获取数据搭建循环神经网络循环神经网络的预测和评估获取数据def get_data(code='000001.SZ',start='20180101',end='20191201',window_len=12): ts_pro = ts.pro_api('xx') df = ts_pro.daily(ts_code=code, start_date=start, end_date=end) df = df.reindex(index=df.ind

2021-11-21 11:56:58 693 1

转载 MAC M1使用tensorflow报错

MAC M1使用tensorflow报错报错信息如下2021-11-21 08:52:23.597314: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:116] None of the MLIR optimization passes are enabled (registered 2)2021-11-21 08:52:23.597598: W tensorflow/core/platform/profile_utils/cpu

2021-11-21 11:46:49 1621

原创 MAC M1安装scikit-learn库

MAC M1安装scikit-learn库在终端输入下面的语句:conda install -c conda-forge scikit-learn

2021-11-21 08:31:16 2024

原创 tensorflow使用报错:AttributeError: module ‘tensorflow‘ has no attribute ‘Session‘

tensorflow使用报错:AttributeError: module 'tensorflow' has no attribute 'Session'安装完tensorflow后运行:import tensorflow as tftf.Session()报错:AttributeError: module ‘tensorflow’ has no attribute ‘Session’然后修改为:tf.compat.v1.Session()...

2021-11-21 08:29:20 732

原创 利用sklearn的svm预测趋势

利用sklearn的svm预测趋势数据准备模型训练和预测数据准备def get_data(code,start,end,window_len=20): ts_pro=ts.pro_api('xx') df=ts_pro.daily(ts_code=code,start_date=start,end_date=end,fields='ts_code,trade_date,open,close') df=df.reindex(index=df.index[::-1]) #特

2021-11-20 17:37:35 1372

原创 关于ta-lib安装包

关于ta-lib安装包1.市场指标计算1.1 MA指标1.2 MACD指标1.3 RSI指标1.4 KDJ指标1.5 CCI指标1.6 ATR指标1.7 OBV指标1.市场指标计算1.1 MA指标import talibimport pandas as pdimport mplfinance as mpfimport matplotlib.pyplot as plt#from matplotlib.finance import candlestick2_ohlcfrom mpl_financ

2021-11-15 22:56:40 1594

原创 关于Tushare库的使用

Tushare库的使用1、获取历史数据1.1获取股票历史行情数据1.2获取涨停跌停股票数据1.3获取期货合约信息1.4获取期货历史行情数据1.5获取期权合约数据1.6获取期权历史行情数据1.7获取新闻快讯1.8获取通用行情接口1、获取历史数据1.1获取股票历史行情数据df = ts_pro.daily(ts_code='6000848.SH',start_date='20211102',end_date='20211112')1.2获取涨停跌停股票数据df = ts_pro.limit_list

2021-11-11 23:11:51 13898

转载 GitHub注册失败

GitHub注册失败–Unable to verify…在GitHub注册过程中显示“Unable to verify your captcha response. Please visit https://help.github.com/articles/troubleshooting-connectivity-problems/#troubleshooting-the-captcha for troubleshooting information.”,通过谷歌浏览器,IE浏览器均无法登陆,采用手机版本

2020-11-22 17:15:16 1011

转载 关于Python的dataframe对象基本操作

对于一个dataframe对象df,假定你要取出某一行,不能使用df[i]。dataframe取出某一行:df.ix[i]或者df.iloc[i]dataframe取出前两行:df.[0:2]dataframe取出某一列:df.loc[‘A’]或者df[‘A’]dataframe取出某行某列:df[i,j]参考链接:https://blog.csdn.net/tanlangqie/art...

2019-03-28 21:54:26 1193

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除