Last answered:

07 Apr 2020

Posted on:

04 Apr 2020

0

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)
Instructor
Posted on:

07 Apr 2020

0

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

Submit an answer