From 37b908792bbfb77882df7a872186548317f5d1fa Mon Sep 17 00:00:00 2001 From: Lee Yuntong <89683513+akazeakari@users.noreply.github.com> Date: Wed, 19 Jun 2024 17:31:57 +0800 Subject: [PATCH] Fix typo (#1809) Co-authored-by: LeeYuntong --- qlib/data/data.py | 2 +- qlib/workflow/task/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qlib/data/data.py b/qlib/data/data.py index 1b1353ee4..aba75c0b1 100644 --- a/qlib/data/data.py +++ b/qlib/data/data.py @@ -616,7 +616,7 @@ class DatasetProvider(abc.ABC): data = pd.DataFrame(obj) if not data.empty and not np.issubdtype(data.index.dtype, np.dtype("M")): - # If the underlaying provides the data not in datatime formmat, we'll convert it into datetime format + # If the underlaying provides the data not in datetime format, we'll convert it into datetime format _calendar = Cal.calendar(freq=freq) data.index = _calendar[data.index.values.astype(int)] data.index.names = ["datetime"] diff --git a/qlib/workflow/task/utils.py b/qlib/workflow/task/utils.py index 19837b3c7..4b4a7c06b 100644 --- a/qlib/workflow/task/utils.py +++ b/qlib/workflow/task/utils.py @@ -242,7 +242,7 @@ class TimeAdjuster: def shift(self, seg: tuple, step: int, rtype=SHIFT_SD) -> tuple: """ - Shift the datatime of segment + Shift the datetime of segment If there are None (which indicates unbounded index) in the segment, this method will return None.