Skip to content

Commit

Permalink
Merge pull request #1372 from yutiansut/master
Browse files Browse the repository at this point in the history
#update #1370
  • Loading branch information
yutiansut authored Dec 28, 2019
2 parents d543a13 + d2b29fb commit 4fdae70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QUANTAXIS/QAData/QAIndicatorStruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def get_timerange(self, start, end, code=None):
获取某一段时间的某一只股票的指标
"""
try:
return self.data.loc[(slice(pd.Timestamp(start), pd.Timestamp(end)), slice(code)), :]
return self.data.loc[(slice(pd.Timestamp(start), pd.Timestamp(end)), code), :]
except:
return ValueError('CANNOT FOUND THIS TIME RANGE')

Expand Down

0 comments on commit 4fdae70

Please sign in to comment.