Skip to content

Instantly share code, notes, and snippets.

@InJeCTrL
Created March 26, 2019 06:37
Show Gist options
  • Select an option

  • Save InJeCTrL/5a388c0862096992ec4c3395553ed529 to your computer and use it in GitHub Desktop.

Select an option

Save InJeCTrL/5a388c0862096992ec4c3395553ed529 to your computer and use it in GitHub Desktop.
MindGo下载股票特色数据-事件与特色数据
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