tushare_function.py 文件源码

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

项目:base_function 作者: Rockyzsu 项目源码 文件源码
def get_high_test():
    df = ts.get_h_data('300141', start=day30, end=day0)

    #???????????????

    #print df
    #current= df[:1]
    #current=df.iloc[0]
    print df
    current = df.ix['2016-07-15']
    print current
    current_high = current['high'].values[0]
    print current_high
    highest = df['high']
    lowest = df['low']

    price_30_max = highest.max()
    price_30_min = lowest.min()

    print df[df.high >= price_30_max]

    #???????????
    print df[df.low <= price_30_min]
    #???????????


    print price_30_max
    print price_30_min
    #oneData= df.ix['2016-07-11']
    #print oneData.iloc[0,1]
    #print type(oneData)
    #for i in highest.len:
    #    print i

    #print type(t)
    if current_high >= price_30_max:
        print stock_info.ix['300141']['name'].decode('utf-8')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号