1

I have a pandas dataframe,

result_df.round(2).to_html(r"C:\example.html", justify="center", col_space=750)

The resulting html table has centered column names and row names but the numbers in the table are left-aligned. How do I get the entries in the table also to be left aligned?

many thanks.

Lost1
  • 990
  • 1
  • 14
  • 34

0 Answers0