trace = go.Scatter(x = df['AAPL_x'], y = df['AAPL_y'], name='Share Prices (in USD)') layout = go.Layout(title='Apple Share Prices over time (2014)', plot_bgcolor='rgb(230, 230,230)', showlegend=True) fig = go.Figure(data=[trace], layout=layout) py.iplot(fig, filename='apple-stock-prices')