How to Use For loop to print DataFrame without using Streamlit Package

Hello Friends,

I am beginner in Python and Streamlit can we help me in the problem

I am trying to Show case Table using HTML code where i am passing the dataframe in For loop in Markdown below is the Code but getting error in VSCODE

      <table class="table-dark table-striped-columns">
                  {% for header in dt.columns %}
                  <th scope="col">{{ header }}</th>
                  {% endfor %}
      """,unsafe_allow_html= True)

You could use the jinja2 package for this.


Hello Franky Do you have any example which show how we can use Jinja2 package in streamlit.