'Format Changing Problem of Number Input in streamlit
The program offers the number format as Default in a.b format (like 1.2) but I want to show as a:b format (like 1:2) How can I change this? I tried below but it didn’t work:
(st.number_input(“time”)).replace(".",":")
Solution 1:[1]
str(st.number_input(“time”,format="%f")).replace(".",":")
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | murat taşçı |