Skip to content

Instantly share code, notes, and snippets.

Created June 21, 2019 07:34
What would you like to do?
# 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()
plt.legend(['train', 'test'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment