Skip to content

Commit

Permalink
Fix typo (#1809)
Browse files Browse the repository at this point in the history
Co-authored-by: LeeYuntong <nukuihayu@outlook.com>
  • Loading branch information
akazeakari and LeeYuntong committed Jun 19, 2024
1 parent 73ec0f4 commit 37b9087
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion qlib/data/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ def inst_calculator(inst, start_time, end_time, freq, column_names, spans=None,

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"]
Expand Down
2 changes: 1 addition & 1 deletion qlib/workflow/task/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def _add_step(self, index, step):

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.
Expand Down

0 comments on commit 37b9087

Please sign in to comment.