Please see the following the code:
{% for row in df_src.iterrows %} <tr > <td><input type="checkbox"></td> {% for col in columns %} <td class="redrow">{{row.1.col}}</td> {% endfor %} </tr> {% endfor %} Here in {{row.1.col}} where col can be any value like NAME, PHONE, etc. When I access it like {{row.1.PHONE}} I get the value in html, however when I access it like {{row.1.col}} nothing is shown in html.