Created
May 2, 2017 13:14
-
-
Save adxrgh/d0749889ba04d24206d606de3d7743d7 to your computer and use it in GitHub Desktop.
[IO]wind引入代码及股票名 #tags:wind,code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
from pandas import DataFrame | |
fro WindPy import * | |
w.start | |
### | |
t1=w.wset('sectorconstituent','date=20170501;sector=全部A股') | |
a=DataFrame({'code':t1.Data[1],'name':t1.Data[2]}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment