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
# 2017/1/1 까지의 데이터를 트레이닝셋. | |
# 그 이후 데이터를 테스트셋으로 한다. | |
split_date = pd.Timestamp('01-01-2017') | |
train = df.loc[:split_date, ['trade_price_idx_value']] | |
test = df.loc[split_date:, ['trade_price_idx_value']] | |
ax = train.plot() | |
test.plot(ax=ax) | |
plt.legend(['train', 'test']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment