I was going through the documentation https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_html.html It says I can pass a list. My understanding is passing a list should set width for each column.
**col_space**: col_spacestr or int, list or dict of int or str, optional
The minimum width of each column in CSS length units. An int is assumed to be px units.
But it just passes the list to style
<tr style="text-align: right;">
<th style="min-width: [200, 75, 75, 75, 75, 75, 75];"></th>
<th style="min-width: [200, 75, 75, 75, 75, 75, 75];">filename</th>
<th style="min-width: [200, 75, 75, 75, 75, 75, 75];">type</th>
<th style="min-width: [200, 75, 75, 75, 75, 75, 75];">status</th>
<th style="min-width: [200, 75, 75, 75, 75, 75, 75];">message</th>
<th style="min-width: [200, 75, 75, 75, 75, 75, 75];">user</th>
<th style="min-width: [200, 75, 75, 75, 75, 75, 75];">date</th>
</tr>
df.to_html(col_space=range(len(df.columns)))