error in seasonality
I am getting an error when doing the time series seasonality task. The error is
You must specify a freq or x must be a pandas object with a timeseries index with a freq not set to None
1 answers ( 0 marked as helpful)
Hey Janmejoy,
You need to make sure you've set a frequency for your dataset as well as filled in any missing values.
df_comp=df_comp.asfreq('b') df_comp=df_comp.fillna(method='ffill')
Best,
365 Vik