title: How do I display the results of data_frame.plot.bar() on the webpage using Django?
body: <p>I want to display the results of pandas df.plot.bar() on the webpage.How do I do it?
  This is what I am trying.</p>
  
  <pre><code>def graph(request):
      fig = Figure()
      ax = fig.add_subplot(111)
      data_df = pd.read_csv("C:/Users/yadynesh/Final_Project/original.csv")
      data_df = pd.DataFrame(data_df)
      data_df.plot.bar(ax=ax)
      canvas = FigureCanvas(fig)
      response = HttpResponse( content_type = 'image/png')
      canvas.print_png(response)
      return response
  </code></pre>