I would like to show only the two digits for float in datable but I’m unable to do it. I used :
from dash_table.Format import Format
and tried to play with different format (precision, decimal_delimiter, …) but I’m unable to make it work.
I’m loading a dataframe and the technique I use is to replace columns containing float to the same column with only two digits. But this technique has two drawbacks
- I want to keep the precision of the numbers so I need to copy the dataframe to get one version with two digits, one with all the digits, I would like to avoid this.
- The int are also converted to 2 digits numbers
Is there a method with datatable that I could use ?