Created
November 3, 2021 21:39
-
-
Save rian-dolphin/2e3e406119dc7d787ca554f1a16ad2c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def train_test(df, test_periods): | |
train = df[:-test_periods].values | |
test = df[-test_periods:].values | |
return train, test | |
test_periods = 8 | |
train, test = train_test(df, test_periods) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment