Hey there currently running my streamlit (v 1.30.0) app locally and deployed (both python 3.10) (however it is irrelevant for this post), For the st.slider component, how do you format the number to include a comma in the thousands spot?
shows there is a format option:
โA printf-style format string controlling how the interface should display numbers. This does not impact the return value. Formatter for int/float supports: %d %e %f %g %i Formatter for date/time/datetime uses Moment.js notation: Moment.js | Docsโ
The only one that changes anything is the %e which turns it to scientific formattingโฆ
I looked into โsprintfโ and came across โ%'dโ which does give an error of
" SyntaxError: [sprintf] unexpected placeholder"
What is the correct way to turn full numbers (1000) into (1,000) ?
I found that format โ%.2fโ will convert it to (1000.00) which matches python formatting but โ%:,โ doesnโt work like f"{1000:,}" wouldโฆ
Please help. Thanks