Gas Price Analyzer
Gas Price Analyzer
results = model.fit()
#print(forecast)
d = pd.DataFrame(forecast)
1
4 2025-03-01 12.644867
5 2025-04-01 12.681651
6 2025-05-01 12.043331
7 2025-06-01 11.615156
8 2025-07-01 11.491899
9 2025-08-01 11.653760
10 2025-09-01 11.540510
11 2025-10-01 11.752298
axes[1].set_xlabel('Dates', fontsize=12)
axes[1].set_ylabel('Prices', fontsize=12)
axes[1].tick_params(axis='x', rotation=45)
axes[1].legend(fontsize=12)
axes[1].grid(True)
2
axes[1].annotate('Projected Trend', xy=(data.index[-1], forecast.iloc[-1]),␣
,→xytext=(-100, 50),
plt.tight_layout()
plt.show()