From fed0bf6c7d4d4836a57973b5eb750298f7bd90e9 Mon Sep 17 00:00:00 2001 From: gaurav Date: Mon, 23 Oct 2023 13:41:06 -0700 Subject: [PATCH] Update streamlit_app.py --- streamlit/streamlit_app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/streamlit/streamlit_app.py b/streamlit/streamlit_app.py index 493afd2..cbc15c4 100644 --- a/streamlit/streamlit_app.py +++ b/streamlit/streamlit_app.py @@ -39,13 +39,15 @@ def app(): if selected_function == "Append Electoral Roll Data to First Name": fname_col = st.selectbox("Select column with first name", df.columns) - state = st.selectbox("Select a state", ["andaman", "andhra", "arunachal", "assam", + state = st.selectbox("Select a state", ["all", "andaman", "andhra", "arunachal", "assam", "bihar", "chandigarh", "dadra", "daman", "delhi", "goa", "gujarat", "haryana", "himachal", "jharkhand", "jk", "karnataka", "kerala", "maharashtra", "manipur", "meghalaya", "mizoram", "mp", "nagaland", "odisha", "puducherry", "punjab", "rajasthan", "sikkim", "tripura", "up", "uttarakhand"]) + if state == "all": + state = "" function = sidebar_options[selected_function] if st.button('Run'): transformed_df = function(df, namecol=fname_col, state = state)