tushare_function.py 文件源码

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

项目:base_function 作者: Rockyzsu 项目源码 文件源码
def gsz():
    hq = ts.get_today_all()
    hq['trade'] = hq.apply(lambda x: x.settlement if x.trade == 0 else x.trade, axis=1)
    basedata = stock_info[['outstanding', 'totals', 'reservedPerShare', 'esp']]
    hqdata = hq[['code', 'name', 'trade', 'mktcap', 'nmc']]
    hqdata = hqdata.set_index('code')
    data = basedata.merge(hqdata, left_index=True, right_index=True)
    print data.head(10)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号