How to change default precision for all float dtypes in pn.widgets.Tabulator

I don’t think there’s a way to do that for all the columns at once (please someone correct me if I’m wrong!). I’d just do something like:

import numpy as np, pandas as df
df = pd.DataFrame(...)
formatters = {c: NumberFormatter(format='0.00') for c in df.columns if df[c].dtype == np.float64}
...
1 Like