I have a temp DF that has the following data in it
Quarter
2016Q3 146660510.0
2016Q4 123641451.0
2017Q1 125905843.0
2017Q2 129656327.0
2017Q3 126586708.0
2017Q4 116804168.0
2018Q1 118167263.0
2018Q2 121633740.0
2018Q3 125314447.0
2018Q4 120994896.0
2019Q1 126124709.0
2019Q2 134753318.0
I'm passing this into seasonal_decompose as quarterly data as per below but I get an error messsage saying "Axis must have freq
set to convert to Periods". Frequency has been set in the DF. I think the issue is related to the fact you have to specify to matplotlib that the x axis is periods but I don't know how to do that and can't find any other examples where a DecomposeResult object with quarters is used
result = seasonal_decompose(temp, model='additive',period=4)
result.plot()
plt.show()