add cast to index type

This commit is contained in:
Florian Förster 2025-04-11 14:00:07 +02:00
parent 4427c98a4e
commit 2f3d51de0c

View File

@ -251,7 +251,7 @@ def _process_sales(
# TODO: therefore, stepping with fixed value n does not result in timedelta of n episodes
# Option A: pad data frame with zero values --> could impede forecast algorithm
# Option B: calculate next index based on timedelta
dates = monthly_sum.index
dates = cast(pd.DatetimeIndex, monthly_sum.index)
# print("dates: ", dates)
# ?? --- new: use monthly basis for time windows
# baseline: 3 years - 36 months