How to create a time series with darts having weekly frequency?
When having weekly data as follows:
import pandas as pd
df = pd.DataFrame({
'Date' : [
pd.to_datetime('2022-12-05'),
pd.to_datetime('2022-12-12'),
pd.to_datetime('2022-12-19'),
pd.to_datetime('2022-12-26')],
'Variable': [10,21,23,24]})
I am struggling to get the correct freq
as weekly:
from darts import TimeSeries
# I use freq = day in order to not to get an error.
TimeSeries.from_dataframe(df, 'Date', "Variable", freq="d")