Skip to content

Commit

Permalink
Update streamlit_app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
soodoku authored Oct 23, 2023
1 parent 49628b1 commit fed0bf6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion streamlit/streamlit_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fed0bf6

Please sign in to comment.