Question : You must specify a period or x must be a pandas object with a PeriodIndex or a DatetimeIndex with a freq not set to None
Answered by : syed-nayeem-ridwan
decomposition = sm.tsa.seasonal_decompose(co2_levels, period = int(len(co2_levels)/2))
Source : | Last Update : Sat, 17 Feb 24