You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File ~/miniconda3/envs/env/lib/python3.11/site-packages/pytorch_forecasting/data/timeseries.py:490, in TimeSeriesDataSet.init..(x) 486 # filter data 487 if min_prediction_idx is not None: 488 # filtering for min_prediction_idx will be done on subsequence level ensuring 489 # minimal decoder index is always >= min_prediction_idx
--> 490 data = data[lambda x: x[self.time_idx] >= self.min_prediction_idx - self.max_encoder_length - self.max_lag] 491 data = data.sort_values(self.group_ids + [self.time_idx]) 493 # preprocess data
File ~/miniconda3/envs/env/lib/python3.11/site-packages/pandas/_libs/tslibs/timestamps.pyx:493, in pandas._libs.tslibs.timestamps._Timestamp.sub()
File ~/miniconda3/envs/env/lib/python3.11/site-packages/pandas/_libs/tslibs/timestamps.pyx:461, in pandas._libs.tslibs.timestamps._Timestamp.add()
TypeError: Addition/subtraction of integers and integer-arrays with Timestamp is no longer supported. Instead of adding/subtracting n, use n * obj.freq
pandas 2.0.3
The text was updated successfully, but these errors were encountered:
File ~/miniconda3/envs/env/lib/python3.11/site-packages/pytorch_forecasting/data/timeseries.py:490, in TimeSeriesDataSet.init..(x)
486 # filter data
487 if min_prediction_idx is not None:
488 # filtering for min_prediction_idx will be done on subsequence level ensuring
489 # minimal decoder index is always >= min_prediction_idx
--> 490 data = data[lambda x: x[self.time_idx] >= self.min_prediction_idx - self.max_encoder_length - self.max_lag]
491 data = data.sort_values(self.group_ids + [self.time_idx])
493 # preprocess data
File ~/miniconda3/envs/env/lib/python3.11/site-packages/pandas/_libs/tslibs/timestamps.pyx:493, in pandas._libs.tslibs.timestamps._Timestamp.sub()
File ~/miniconda3/envs/env/lib/python3.11/site-packages/pandas/_libs/tslibs/timestamps.pyx:461, in pandas._libs.tslibs.timestamps._Timestamp.add()
TypeError: Addition/subtraction of integers and integer-arrays with Timestamp is no longer supported. Instead of adding/subtracting
n
, usen * obj.freq
pandas 2.0.3
The text was updated successfully, but these errors were encountered: