Skip to content

Commit 0b4ef20

Browse files
committedJul 21, 2018
#update change selects
1 parent 0b78ad1 commit 0b4ef20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎QUANTAXIS/QAData/base_datastruct.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -759,9 +759,9 @@ def selects(self, code, start, end=None):
759759
"""
760760
def _selects(code, start, end):
761761
if end is not None:
762-
return self.data.loc[(slice(pd.Timestamp(start), pd.Timestamp(end)), slice(code)), :]
762+
return self.data.loc[(slice(pd.Timestamp(start), pd.Timestamp(end)), code), :]
763763
else:
764-
return self.data.loc[(slice(pd.Timestamp(start), None), slice(code)), :]
764+
return self.data.loc[(slice(pd.Timestamp(start), None), code), :]
765765
try:
766766
return self.new(_selects(code, start, end), self.type, self.if_fq)
767767
except:

0 commit comments

Comments
 (0)