量化投资与数据分析一: 如何用PYTHON下载WIND数据并转化成dataframe格式 分享

量化从业者分享代码


 

from WindPy import *

w.start()
import pandas as pd
from WindPy import *
from sqlalchemy import create_engine
import datetime,time
import os
import numpy as np
import datetime as dt
import time
from datetime import *   



#载入包裹

wsd_data=w.wsd("510050.SH", "close,NAV_acc", "2005-02-23", "2017-07-11", "")

fm=pd.DataFrame(wsd_data.Data,index=wsd_data.Fields,columns=wsd_data.Times)
fm=fm.T #转置
fm

 

## 更多量化学习资源
扫上方二维码,关注公众账号 量化投资学院 ,获取下列免费资源
- 回复**“热点研报”**,获取近年热点券商金融工程研究报告
- 回复**“Python3”**,获取Python免费学习教程
*   [更多福利请点击此链接](https://www.jianshu.com/p/2ffb29f1a1aa)
## 关注StudyQuant
*   [课程](http://study.163.com/provider/400000000342001/index.htm?share=2&shareId=400000000342001)
--[量化投资与数据分析实战](http://study.163.com/course/introduction/1004855008.htm?share=2&shareId=400000000342001)
--[量化投资与数字货币实战](http://study.163.com/course/courseMain.htm?courseId=1005630014&share=2&shareId=400000000342001#/courseDetail?tab=1)
--[免费Python及量化投资公开课](https://www.jianshu.com/p/0342b36433f7)

*   [知乎](https://zhuanlan.zhihu.com/studyquant)
*   [简书](https://www.jianshu.com/u/495eda774816)
*   [公众号](https://mp.weixin.qq.com/s__biz=MzU5NzU5NjIwMQ==&mid=100000028&idx=1&sn=2f8c053849f296455ec85406e80b2a2d&chksm=7e50405a4927c94c18ba438e0c309a7d13883621ddf02904266026556e9994ad1c3f8558327d&mpshare=1&scene=1&srcid=0810AEevB9zID4Ywzl1icPfA#rd)
 

你可能感兴趣的:(Python量化投资)