Dash table formatting decimal place

If you are using pandas data frame then you can try

from pandas.api.types import is_numeric_dtype
# df_filtered some data frame
# here taking 2 decimal point
# 'type; is must
dash_table.DataTable(
                data=df_filtered.head(5).to_dict('records'),
                columns=[{'id': c, 'name': c, 'format': {'specifier': '.2f'}, 'type': 'numeric' if is_numeric_dtype(df_filtered[c]) else None} for c in df_filtered.columns],
                style_table={'overflowX': 'auto'},
            )