From 49628b129b81be3b37b551f10864163db008a127 Mon Sep 17 00:00:00 2001 From: gaurav Date: Mon, 23 Oct 2023 13:34:38 -0700 Subject: [PATCH] Update streamlit_app.py --- streamlit/streamlit_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streamlit/streamlit_app.py b/streamlit/streamlit_app.py index a4e5fb0..493afd2 100644 --- a/streamlit/streamlit_app.py +++ b/streamlit/streamlit_app.py @@ -56,7 +56,7 @@ def app(): fname_col = st.selectbox("Select column with first name", df.columns) function = sidebar_options[selected_function] if st.button('Run'): - transformed_df = function(df["fname_col"]) + transformed_df = function(df[fname_col]) st.dataframe(transformed_df) download_file(transformed_df)