While using the StyleFrame library to write into an excel file, I am not able to retain 3 decimal digits if there are trailing zeroes.
For example, consider the following dataframe:
Next, I write this dataframe into a StyleFrame object for data formatting and finally, write the StyleFrame object into an excel file:
sf = StyleFrame(df)
sf = sf.apply_headers_style(...)
sf = sf.apply_column_style(...)
sf.to_excel(writer, float_format="%.3f")
Here's my output:
What I would like to do is, show 0.08 as 0.080 as my float format suggests "%.3f" in the to_excel() call.
Any suggestions please?