html table header locked to the top of the page even when scrolling down
<p>I've used both <code>to_html()</code> and <code>style.render()</code> of Pandas DataFrame to generate html page from CSV data. It's cool!</p>

<p>But when I scroll the page down I lose sight of the column names, that's the problem.</p>

<p>Is there some way of hanging it up on the top of the page?</p>

<p>Is this what you need?</p>

<pre><code>#NAME HERE{ 
position: fixed; 
{
</code></pre>

<p>You can also do the width ect with this code...</p>

<pre><code> #NAME HERE{ 
 position: fixed; 
 bottom:0px; 
 right: 0; 
 width: 0px; 
 height: 0px;
 }
</code></pre>

<p>Also, if you want the width to span across the page just change the 0px to 100% Also depending on what you want, change " fixed " to " absolute "</p>

python html python-2.7 pandas dataframe