tushare_case.py 文件源码

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

项目:stock 作者: Rockyzsu 项目源码 文件源码
def base_function(self, id):
        if id == None:
            print "Input stock id please "
            return

        stockInfo = ts.get_hist_data(id)
        # print type(stockInfo)
        # print stockInfo.head()
        # print stockInfo.dtypes
        df = ts.get_stock_basics()
        data = df.ix[id]['timeToMarket']
        print data
        all_data = ts.get_today_all()
        print all_data.ix[id]['name']
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号