DataFrame.to_html col_space parameter to change width of a specific column only (original) (raw)

Code Sample, a copy-pastable example if possible

Problem description

Currently col_space changes width of all columns that are present in the dataframe. There must be a way to change the width of a specific column only while converting dataframe to html.

Expected Output

col_space to accept a list or dict where we can mention the column name to change only a specific column's width.