Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save dpbac/ca60a95242b60e1e177bf9cd8125b501 to your computer and use it in GitHub Desktop.
# Take the first and seasonal differences (S=7) and drop NaNs
df_store_2_item_28_time_diff = df_store_2_item_28_time.diff().diff(7).dropna()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment