Trying to apply seasonal_decompose on timeseries data whose freq is irregular. It looks something like this:
modal_price
Period
2014-11-01 1469
2015-01-01 1258
2015-03-01 1112
2015-04-01 1373
2015-06-01 1370
2015-07-01 1406
2015-08-01 1520
2015-09-01 1860
2015-10-01 1436
2015-11-01 1455
freq comes out to be None when I use df.index.freq
When I use seasonal_decompose function like this:
seasonal_decompose(x, model = 'additive')
it shows an error
ValueError: You must specify a freq or x must be a pandas object with a timeseries index with a freq not set to None.
Need help.