title: How to change dataframe to html table in django ?
body: <p>I am sending this dataframe from django views to template html file </p>
  
  <p><code>Forecast
  Date
  2018-01-22 05:30:00    147.01
  2018-01-23 05:30:00    139.67
  2018-01-24 05:30:00    140.51
  2018-01-25 05:30:00    144.68
  2018-01-26 05:30:00    142.97
  2018-01-27 05:30:00    151.83
  2018-01-28 05:30:00    151.93
  2018-01-29 05:30:00    142.88
  2018-01-30 05:30:00    157.31
  2018-01-31 05:30:00    145.67</code></p>
  
  <p>In this above data frame the forecast is the column and date and the values are rows , but i want the the date to be in a column and the forecast values to be in another column.</p>
  
  <p>This is the HTML file where i am trying to change the dataframe to html table.</p>
  
  <pre><code>`&lt;html&gt;
  &lt;body&gt;
  &lt;table&gt;
      &lt;table&gt;
  {% for r in table %}
       {% cycle '&lt;tr&gt;' '' '' '' %}tr&gt;
          &lt;td&gt;{{r.content}}&lt;/td&gt;      
      &lt;{% cycle '' '' '' '&lt;/tr&gt;' %}
  {% endfor %}
  &lt;/table&gt;
  {{accuracy}}
  &lt;/html&gt;`
  </code></pre>