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