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')
评论列表
文章目录