Skip to content

Instantly share code, notes, and snippets.

@erykml
Created December 8, 2020 23:09
Show Gist options
  • Save erykml/222f97e861ecb7c54474229edc7767a2 to your computer and use it in GitHub Desktop.
Save erykml/222f97e861ecb7c54474229edc7767a2 to your computer and use it in GitHub Desktop.
# getting the train/test split
test_length = 365
df_train = df.iloc[:-test_length]
df_test = df.iloc[-test_length:]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment