自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

云金杞

Quant\Econometrician\Programmer\MFIn\CIIA\FRM\CFP

  • 博客(19)
  • 资源 (9)
  • 问答 (2)
  • 收藏
  • 关注

原创 python-pyautogui、pandas、subprocess等打开行情软件,获取数据,并保存到dataframe中

#打开软件import pyautoguiimport subprocessimport win32apiimport timeimport pandas as pdimport numpy as npprs=subprocess.Popen(["C:/Program Files (x86)/绿金在线/绿金在线倚天行情交易客户端/isky.exe "])time.sleep(2)

2017-02-25 11:19:55 2092

原创 python-pandas读取剪贴板内容

我使用的Python3.5,32版本win764位系统,pandas0.12版本,使用df=pd.read_clipboard()的时候读不到数据,百度查找解决方法,找到了一个比较靠谱的打开site-packages\pandas\io\clipboard.py在 text = clipboard_get() 后面一行加入这句: text = text.decode

2017-02-25 10:30:53 8112

原创 python安装pywin32clipboard的方法

要使用到剪贴板的方法,搜索到有两个包可以用,pyperclip,和pywin32clipboard,pyperclip在3.5版本中不能够import,可以手动下载安装,未查到原因;pywin32clipboad不能用pip install 安装,也不能够查找到这个包,原来,这个是pywin32的一部分,直接安装pywin32就可以了。import win32clipboardwin32cl

2017-02-25 10:13:06 19255

原创 python的pyautogui--模拟鼠标,键盘输入实现大宗商品现货下单

# -*- coding: utf-8 -*-"""Created on Fri Feb 17 15:08:37 2017 @author: yunjinqi E-mail:[email protected] Differentiate yourself in the world from anyone else."""import pyautoguiimport time

2017-02-24 22:55:20 3582

原创 Python-pyautogui包-模拟鼠标点击

"""Created on Fri Feb 17 15:08:37 2017 @author: yunjinqi E-mail:[email protected] Differentiate yourself in the world from anyone else."""import pyautoguiimport timescreenWidth, screenHeig

2017-02-24 22:15:51 7394

转载 PyAutoGUI 简介【转】

转载来自:https://muxuezi.github.io/posts/doc-pyautogui.htmlhttp://blog.topspeedsnail.com/archives/5373 -------------------------------------------------------------------------------------

2017-02-24 15:20:03 759

原创 Python-pywinauto-打开绿金在线软件

from pywinauto import application#启动应用程序file='C:/Program Files (x86)/绿金在线/绿金在线倚天行情交易客户端/isky.exe'app=application.Application(backend='win32').start(file)#连接应用程序#app = application.Application().co

2017-02-23 17:32:38 1349

转载 Python结合Pywinauto 进行 Windows UI 自动化

Pywinauto是基于Python开发的,用于自动化测试的脚本模块,主要操作于Windows标准图形界面。它可以允许你很容易的发送鼠标、键盘动作给Windows的对话框和控件。 其中,最主要功能为对windows标准控件的一系列动作可编程处理。包括对窗口的指定、鼠标或键盘操作、获得控件属性等等。程序的开始为对所需应用的启 动或连接。获得程序连接后,pywinauto通过窗口的名称、类名、是否

2017-02-23 16:57:15 9093

原创 按键精灵下载文华财经数据 一键下载

文华财经下载期货数据的时候,一次次点击鼠标,比较麻烦。使用按键精灵,能够模拟鼠标的点击,解放双手。'==========以下是按键精灵录制的内容==========MoveTo 745, 338For 300 LeftClick 1 Delay 2 LeftUp 1 Delay 6000 LeftClick 1 next'==========以上是按键精灵录制的内容

2017-02-21 23:30:11 3083 1

原创 时间序列分析-R语言-随机游走以及回归画图

###随机游走以及回归library(TSA)win.graph(width=4.8, height=3,pointsize=10)data(rwalk)plot(rwalk,type='o',ylab='数值',main='随机游走')model1=lm(rwalk~time(rwalk))summary(model1)abline(model1)Call:lm(formula

2017-02-20 11:21:06 11290 1

原创 时间序列分析(3)Python-最简单的回归

# -*- coding: utf-8 -*-"""Created on Fri Feb 17 15:08:37 2017@author: yunjinqiE-mail:[email protected] yourself in the world from anyone else."""import pandas as pdfrom scipy imp

2017-02-17 15:28:09 4670

原创 时间序列分析(3)R语言-最基础的回归模型

rt<-read.table("exam0203.txt", head=TRUE); rtlm.sol<-lm(Weight~Height, data=rt)summary(lm.sol)rt<-read.table("exam0203.txt", head=TRUE); rt Name Sex Age Height Weight1 Alice F 13 56.5

2017-02-17 15:03:42 2089

原创 时间序列分析(2)R语言-基本统计量

###########数据的基本统计量:均值,方差,偏度,峰度等install.packages(('fBasics'))library(fBasics)simplerate#查看数据集,发现最后一行是无限大,删除length(simplerate)#查看数据长度sr=simplerate[-258,]#删除最后一行length(sr)basicStats(sr)#基本统计量###

2017-02-17 14:18:32 3193

原创 时间序列分析(2)Python-基本统计量的计算

# -*- coding: utf-8 -*-"""Created on Fri Feb 17 11:30:57 2017@author: yunjinqiE-mail:[email protected] yourself in the world from anyone else."""import pandas as pddf=pd.read_exc

2017-02-17 13:58:48 3068

原创 时间序列分析(1)Python-计算简单收益率

# -*- coding: utf-8 -*-"""Created on Fri Feb 17 11:30:57 2017@author: yunjinqiE-mail:[email protected] yourself in the world from anyone else."""import pandas as pddf=pd.read_exc

2017-02-17 13:35:44 21410

原创 时间序列分析(1)R语言-计算简单收益率

#########################################计算简单收益率#install.packages('xts')library(xts)da=read.csv('luowen.csv')#读取文件class(da)#查看文件类型head(da)#查看数据da=da[,c(2,9)]#截取时间和收盘价c=da[,2]#获取收盘价head(c)df=x

2017-02-17 11:25:55 28118

原创 R语言-交互式界面Rcmdr-安装方法

R语言中有一个包,Rcmdr,安装加载之后,可以出现类似spss的界面,用界面进行交互式分析;install.packages('Rcmdr')#安装library(Rcmdr)#加载#一般第一次安装,是安装不完的,加载之后会提示缺少的包,进一步安装(用rstudio)#点击确定就行了,会自动安装,安装完,加载该包library(Rcmdr)

2017-02-17 10:44:06 5494

原创 Python-逻辑回归小案例-学习笔记36

# -*- coding: utf-8 -*-"""Created on Thu Feb 16 14:22:16 2017@author: yunjinqiE-mail:[email protected] yourself in the world from anyone else."""'''1. data1 是40名癌症病人的一些生存资料,其中,X1

2017-02-16 14:45:11 3063 1

转载 python回归分析相关代码-散点图,回归,预测

from sklearn.linear_model import LinearRegression import matplotlib.pyplot as plt from sklearn import metricsimport numpy as np #1#(1)x = [[5.1], [3.5], [7.1], [6.2], [8.8], [7.8], [4.5], [5.6]

2017-02-16 14:10:47 6873

03、债券策略需要的数据.rar

10年期国债收益率与五年期国债收益率的数据均来自英为财经。 10年期国债价格(全价)使用10年期国债期货价格指数代替; 5年期国债价格(全价)使用5年期国债期货价格指数代替;

2020-07-26

行为投资学手册.rar

行为投资学手册思维导图和笔记:一张晰图,一个xmind思维导图源文件。。。

2020-02-08

spss序列基本数据

spss序列基本数据

2017-03-08

python forfinance---code

Build real-life Python applications for quantitative finance and financial engineering

2017-01-19

statsmodels-0.8.0rc1-cp35-cp35-python安装包

statsmodels-0.8.0rc1-cp35-cp35-python安装包

2016-12-09

python写的计算小程序

可以锻炼数学

2016-11-15

python--easygui-0.97安装包

官方安装easygui的安装包,解压下载就可以。

2016-11-12

PyQt4---python安装spyder依赖包

安装spyder使用

2016-11-08

珠心神算-最简洁的锻炼数学计算的小程序

最近智商很捉急,就想着写一个小软件,没事锻炼一下数学的加减乘运算,提高一下自己思维的灵敏度。正好这周末学习autoit,就用这个写了一个小程序。 该软件代码实现了下列功能: 1、选择难易程度 设置了三个级别的难易程度, 初级计算10以内的加减乘 中级计算10-100区间的加减乘 高级计算100-1000之内的加减乘 2、设置每个程度计算多少次 初级 计算100次

2016-10-30

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

TA关注的人

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