Skip to content

Instantly share code, notes, and snippets.

@dpbac
Created June 23, 2021 10:51
Show Gist options
  • Select an option

  • Save dpbac/fa961327cde0c21330391abbc7f20ee3 to your computer and use it in GitHub Desktop.

Select an option

Save dpbac/fa961327cde0c21330391abbc7f20ee3 to your computer and use it in GitHub Desktop.
from statsmodels.graphics.tsaplots import plot_acf, plot_pacf
# Create figure
fig, (ax1, ax2) = plt.subplots(2,1, figsize=(12,8))
# Plot the ACF of df_store_2_item_28_timeon ax1
plot_acf(df_store_2_item_28_time,lags=14, zero=False, ax=ax1)
# Plot the PACF of df_store_2_item_28_timeon ax2
plot_pacf(df_store_2_item_28_time,lags=14, zero=False, ax=ax2)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment