We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c21b80 commit 7ccf3f7Copy full SHA for 7ccf3f7
1 file changed
qlib/data/storage/file_storage.py
@@ -156,7 +156,7 @@ def clear(self) -> None:
156
def index(self, value: CalVT) -> int:
157
self.check()
158
calendar = self._read_calendar()
159
- return int(np.argwhere(calendar == value)[0])
+ return calendar.index(value)
160
161
def insert(self, index: int, value: CalVT):
162
0 commit comments