worker.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:tushare-data-sync 作者: HUMANAMUH 项目源码 文件源码
def fetch_history_index(code, start, end):
    disable_stdout()
    info = "ts.get_h_data('%s', start='%s', end='%s', pause=0.05, index=True)" % (code, start, end)
    with timer(logtime(info)):
        df = await wait_concurrent(event_loop, proc_pool, ts.get_h_data, code, start=start, end=end, pause=0.05, index=True)
    if df is None:
        logging.debug("no history index data for code: %s", info)
        return
    df['code'] = code
    ans = df.reset_index()
    return history_index_buffer.proc_data(ans)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号