image_output_1.png
from plotly.offline import init_notebook_mode, iplot

import pandas as pd

import plotly.graph_objs as go

import plotly.graph_objs as go

df = pd.read_csv('../input/PJME_hourly.csv', index_col=[0], parse_dates=[0])

import plotly.graph_objs as go
trace1 = go.Scatter(x=df.index, y=df.PJME_MW)
data = [trace1]
fig = dict(data=data)

splitdate = '2014-01-01'
df_train_set = df[df.index < splitdate]
df_test_set = df[df.index > splitdate]

df_test_set.head(2)