I get data from the pandas(DataFrame), which is in list of lists, like [['jay', 'M', 'CS'],[],[]] and so on . How can i put this data in table. I directly push the list-data in html file. first loop works fine, but it didn't pass in second loop, How can I do that? I am new to html.
{% for post in post_data %}
<tr>
{% for value in post %}
<td>
{{value}}
</td>
{% endfor %}
</tr>
{% endfor %}
i pass 'tables': [df.to_html(classes='data', header="true")], data display in raw html.
<div class="card card-stats">
<div class="card-body ">
<div class="card-header ">
<!--div class="progress-container progress-info"-->
<!--<h6 class="card -title" style="color:#FFFFFF; background-color:#008B8B;" align="center">DataFiles</h6>-->
<table id="TripGrid" class="datafiletable" cellspacing="0" width="100%">
<thead style="background-color: #6699FF">
{% for header in post_header %}
<th>{{header}}</th>
{% endfor %}
</thead>
<tbody>
{% for table in tables %}
{{table}}
{% endfor %}
</tbody>
</table><br>
</div>
</div>
</div>