I am unable to select options other than default option of
multiselect(). PS - I am using
polars to process the data for efficiency. I have also tried with
selectbox but was getting some issues there as well.
(I am reposting this as somehow it got deleted earlier).
- Link to your GitHub repo: Party_Criminal_Records/1_Analysis_doubt_github.py at main · johnsnow09/Party_Criminal_Records · GitHub
Line number: 46 for the respective code chunk.
- Link to your deployed app: https://party-crime-record.streamlit.app
with st.sidebar: State_List = df.lazy().select(pl.col('State')).unique().collect().to_series().to_list() # State_Selected = st.selectbox(label="Select State", # options = State_List) State_Selected = st.multiselect(label="Select State", options = State_List, default = ["Uttar Pradesh"], # Delhi West Bengal # default = State_List[-1], max_selections=1 )
This is the first filter option on the app and user should be a able to select any one option from it which also creates an input for the second filter multiselect of the app and they both are used to subset the data.
It is not letting me use any other option in the first multiselect() filter.
active environment : None user config file : C:\Users\vinee\.condarc
populated config files : C:\Users\vinee.condarc
conda version : 23.3.1
conda-build version : 3.24.0
python version : 3.9.16.final.0
virtual packages : __archspec=1=x86_64
base environment : C:\Users\vinee\anaconda3 (writable)
conda av data dir : C:\Users\vinee\anaconda3\etc\conda
conda av metadata url : None
platform : win-64 user-agent : conda/23.3.1 requests/2.28.1 CPython/3.9.16 Windows/10 Windows/10.0.19045 administrator : False netrc file : None offline mode : False