code: def plot_lines(it):
      
      data = [go.Scatter(mode='lines', **d) for d in it]
      return py.iplot(data, filename='scatter-mode')
docs: Plotting lines.
  
      :param it:
          Data to plot where key value is the name of the series.
      :type it: list[dict]
  
      :return:
          The plot.
      :rtype: plotly.plotly.iplot