我试图获得ACF和PACF的结果。但是我被困在seasonal_first_difference。这是我的代码:
import matplotlib.pyplot as plt
import statsmodels as sm
fig=plt.figure(figsize(12,8))
ax1=fig.add_subplot(211)
fig=sm.graphics.tsa.plot_acf(data.seasonal_first_difference.iloc[13:],lags=10,ax=ax1)
ax2=fig.add_subplot(212)
fig=sm.graphics.tsa.plot_pacf(data.seasonal_first_difference.iloc[13:],lags=10,ax=ax2)
这将导致以下错误:
AttributeError:“ DataFrame”对象没有属性“ seasonal_first_difference”