st.column_config.NumberColumn how to format with a % sign?

I am using st.datarame with column configs and want my column with float numbers to show as 42.0%. I cannot seem to get the '%' sign working with st.column_config.NumberColumn.

I figured it out, you can get a literal % sign by escaping it with another percent sign: st.column_config.NumberColumn(format="%.1f%%")

1 Like

Set format="%.1f %%" in st.column_config.NumerColumn

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.