Skip to content

Commit

Permalink
try to handle freq directly
Browse files Browse the repository at this point in the history
Signed-off-by: Wesley M. Gifford <[email protected]>
  • Loading branch information
wgifford committed Apr 23, 2024
1 parent 94d96ad commit 30ce436
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tsfm_public/toolkit/time_series_preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,8 +759,8 @@ def create_timestamps(

# more complex logic is required to support all edge cases
if isinstance(freq, (pd.Timedelta, datetime.timedelta, str)):
if isinstance(freq, str):
freq = pd._libs.tslibs.timedeltas.Timedelta(freq)
# if isinstance(freq, str):
# freq = pd._libs.tslibs.timedeltas.Timedelta(freq)

return pd.date_range(
last_timestamp,
Expand Down

0 comments on commit 30ce436

Please sign in to comment.