python
import matplotlib.pyplot as plt
def visualize_time_series(data, model_fit):
# 绘制原始数据和拟合数据
plt.figure(figsize=(10, 6))
plt.plot(data.index, data['components']['co'], label='Original')
plt.plot(data.index, model_fit.fittedvalues, label='Fitted', color='red')
plt.legend()
plt.title('Air Quality CO Levels Over Time')
plt.xlabel('Time')
plt.ylabel('CO Level')
plt.show()
visualize_time_series(processed_data, model_fit)