The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

error in seasonality

error in seasonality

0
Votes
1
Answer

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 Answer

365 Team
0
Votes

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

×
LAST CHANCE
Ready to Learn Data Science?
50% OFF