Skip to content

Instantly share code, notes, and snippets.

@mustafa-qamaruddin
Created May 4, 2019 17:25
Show Gist options
  • Save mustafa-qamaruddin/7a487ea79445f7ace8803cd85802c3ed to your computer and use it in GitHub Desktop.
Save mustafa-qamaruddin/7a487ea79445f7ace8803cd85802c3ed to your computer and use it in GitHub Desktop.
df = pd.read_csv('./Gemini_ETHUSD_d.csv', skiprows=1)
for i in range(1, STEPS):
col_name = 'd{}'.format(i)
df[col_name] = df['d0'].shift(periods=-1 * i)
df = df.dropna()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment