Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

streamlit dropdown

# Add selectbox in streamlit
>>> option = st.selectbox(
...     'How would you like to be contacted?',
...     ('Email', 'Home phone', 'Mobile phone'))
>>>
>>> st.write('You selected:', option)
Source by discuss.streamlit.io #
 
PREVIOUS NEXT
Tagged: #streamlit #dropdown
ADD COMMENT
Topic
Name
9+4 =