title: Render pandas dataframe to HTML table with row seperators
body: <p>I render a pandas multi-index into an html table. </p>
  
  <p>When rendering, after I passed a specific index X I want to add a separator line into the table. I can do this manually by editing the final html file: </p>
  
  <pre><code>/* .... Index X .... */
  &lt;tr&gt;
                  &lt;td colspan="20" class="divider"&gt;&lt;hr /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  /* .... Index Y .... */
  </code></pre>
  
  <p>This produces the desired result:</p>
  
  <p><a href="https://i.stack.imgur.com/Oygkg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Oygkg.png" alt=""></a>. </p>
  
  <p><strong>Question</strong> Is there any way to capture this in code?<br>
  I want to avoid going through each HTML table I create, adding those lines manually. </p>