I am sending this dataframe from django views to template html file
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
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.
This is the HTML file where i am trying to change the dataframe to html table.
`<html>
<body>
<table>
<table>
{% for r in table %}
{% cycle '<tr>' '' '' '' %}tr>
<td>{{r.content}}</td>
<{% cycle '' '' '' '</tr>' %}
{% endfor %}
</table>
{{accuracy}}
</html>`