Created
March 26, 2019 06:37
-
-
Save InJeCTrL/5a388c0862096992ec4c3395553ed529 to your computer and use it in GitHub Desktop.
MindGo下载股票特色数据-事件与特色数据
This file contains hidden or 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
| print("开始.......") | |
| q = query(sport_event) | |
| print("开始查询.......") | |
| df = get_important_matters(q) | |
| print("完成查询........开始写入........") | |
| for a in range(0, len(df), 300000): | |
| if a+300000 >= len(df): | |
| dfw = df[a:len(df)-1] | |
| else: | |
| dfw = df[a:a+300000] | |
| dfw.to_csv( | |
| '{0}.csv'.format(str(a/300000)), | |
| index=False, | |
| ) | |
| print("已写入.......") | |
| print("写入完成..........") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment