Many elements support a format_func parameter, which styles the output shown on screen. We could add this to st.metric as well. Note that it's not as important since st.metric obviously doesn't have a return value. More of a nice to have e.g. when passing in raw numbers and you want to add a unit.
Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.
If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.
Many elements support a
format_funcparameter, which styles the output shown on screen. We could add this tost.metricas well. Note that it's not as important sincest.metricobviously doesn't have a return value. More of a nice to have e.g. when passing in raw numbers and you want to add a unit.Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.
If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.