title: How to add class to a table from context in Django
body: <p>I have a html file I am passing from my <code>views.py</code> as a context and I can load up a table in my html by simply writing <code>{{loaded_data|safe}}</code>. However, I want to add a bootstrap class to it so that it is formatted nicely. I've looked through the jinja2 documentation and tried </p>
  
  <pre><code>&lt;table class="table"&gt;
     {{loaded_data}}
  &lt;/table&gt;
  </code></pre>
  
  <p>but none of my attempts worked and I can't seem to find an answer. 
  <br>Here's a snippet from my  <code>views.py</code></p>
  
  <pre><code>    data = pd.read_csv(csv_file)
      data_html = data.to_html()
      context = {'loaded_data': data_html}
  </code></pre>
  
  <p>So my question is: How should I go about formatting my table passed as a context from views.py?</p>