value error in python statsmodels.tsa.seasonal
After some searching i found [here][1] that, i have to add values
to ts_log.price
decomposition = seasonal_decompose(ts_log.price.values, freq=30)
Edit as to comments. Adding just freq=30
is enough!
You can avoid this error by:
ts_log = ts_log.asfreq('d')
this may generate some missing values:
ts_log = ts_log.fillna(method='bfill').fillna(method='ffill')
Following has resolved the error :
decomposition = seasonal_decompose(log_county_data , period = 30)