diff --git a/ngm/app.py b/ngm/app.py index fdf9c53..651e875 100644 --- a/ngm/app.py +++ b/ngm/app.py @@ -149,6 +149,9 @@ def summarize_scenario( .with_columns(pl.Series("", [f"to {grp}" for grp in params["group_names"]])) .select(["", *[f"from {grp}" for grp in params["group_names"]]]) ) + ngm_df = ngm_df.with_columns( + [pl.col(col).round_sig_figs(sigdigs) for col in ngm_df.columns[1:]] + ) c.dataframe(ngm_df) c.write(ngm_help) @@ -269,8 +272,8 @@ def app(): sigdigs = st.slider( "Displayed significant figures", 1, - 4, - value=3, + 3, + value=2, step=1, help="Values are reported only to this many significant figures.", )