From cd7e3fd0010ccdc84795ed4bcc92c41bf3a58c65 Mon Sep 17 00:00:00 2001 From: you-n-g Date: Sun, 23 Jun 2024 09:48:43 +0800 Subject: [PATCH] Update qlib/utils/index_data.py --- qlib/utils/index_data.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qlib/utils/index_data.py b/qlib/utils/index_data.py index b5ae3df125..ddc2694dfe 100644 --- a/qlib/utils/index_data.py +++ b/qlib/utils/index_data.py @@ -141,7 +141,8 @@ def _convert_type(self, item): elif isinstance(item, np.datetime64): # This happens often when creating index based on np.datetime64 and query with another precision return item.astype(self.idx_list.dtype) - + # NOTE: It is hard to consider every cases at first. + # We just try to cover part of cases to make it more user-friendly return item def index(self, item) -> int: