Skip to content

Instantly share code, notes, and snippets.

@dpbac
Created June 23, 2021 10:52
Show Gist options
  • Save dpbac/03eb4ed29cecdfcf7132becd66ee55a6 to your computer and use it in GitHub Desktop.
Save dpbac/03eb4ed29cecdfcf7132becd66ee55a6 to your computer and use it in GitHub Desktop.
# 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.diff().dropna(),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.diff().dropna(),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