Skip to content

Instantly share code, notes, and snippets.

@cydal
Created November 25, 2020 22:20
Show Gist options
  • Save cydal/6ec1ea45b98f98d86ca33e35cd32541e to your computer and use it in GitHub Desktop.
Save cydal/6ec1ea45b98f98d86ca33e35cd32541e to your computer and use it in GitHub Desktop.
pd.DataFrame({
"t_2": df.head(11)["energy"].shift(2),
"t_1": df.head(11)["energy"].shift(),
"energy": df.head(11)["energy"]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment