I wanted to use streamlit selectbox so users can select from a column in the pandas data frame. I have executed the code properly but it takes too long for streamlit to load the option because the total number of entries in the list is huge. Is there any solution to reduce the time or to have a search box kind of feature so that all the options are not loaded into the dropdown box ? Thanks in advance.
Steps to reproduce
song_list = df['name'].unique()
user_name = st.selectbox('Choose your favourite song here',song_list)
It takes too long for the code to process and the drop down menu to appear.
I would like to reduce the time it takes for the drop down menu to appear or the drop down menu does not appear and we just get a search bar and it takes less time.