From 6387fb1f7a9077171cea678c8cb2a08e40ab5520 Mon Sep 17 00:00:00 2001 From: akshs288 Date: Sun, 9 Aug 2026 10:02:51 +0530 Subject: [PATCH] Fixed the issue of beta columns to columns #35 --- Job_Search_App_with_Streamlit_Forms_n_GithubAPI/app.py | 4 ++-- Movie_Directory_App_with_Layouts/README.md | 2 +- Movie_Directory_App_with_Layouts/app.py | 6 +++--- Movie_Directory_App_with_Layouts/column_layout_tuts.py | 6 +++--- TextClassifierRiverMLApp/app.py | 6 +++--- Working_with_Streamlit_Forms/app.py | 2 +- how_to_add_session__state-settings-App/app.py | 4 ++-- sqlplayground_app/app.py | 2 +- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Job_Search_App_with_Streamlit_Forms_n_GithubAPI/app.py b/Job_Search_App_with_Streamlit_Forms_n_GithubAPI/app.py index 7b3a0a4..258cbec 100644 --- a/Job_Search_App_with_Streamlit_Forms_n_GithubAPI/app.py +++ b/Job_Search_App_with_Streamlit_Forms_n_GithubAPI/app.py @@ -40,7 +40,7 @@ def main(): # Nav Search Form with st.form(key='searchform'): - nav1,nav2,nav3 = st.beta_columns([3,2,1]) + nav1,nav2,nav3 = st.columns([3,2,1]) with nav1: search_term = st.text_input("Search Job") @@ -54,7 +54,7 @@ def main(): st.success("You searched for {} in {}".format(search_term,location)) # Results - col1, col2 = st.beta_columns([2,1]) + col1, col2 = st.columns([2,1]) with col1: if submit_search: diff --git a/Movie_Directory_App_with_Layouts/README.md b/Movie_Directory_App_with_Layouts/README.md index b62c56b..b462a48 100644 --- a/Movie_Directory_App_with_Layouts/README.md +++ b/Movie_Directory_App_with_Layouts/README.md @@ -1,6 +1,6 @@ ### Movie Directory App with Streamlit + MovieLens Dataset + using streamlit layout feature - - st.beta_columns() + - st.columns() - st.beta_expander() + Version 0.68 and more diff --git a/Movie_Directory_App_with_Layouts/app.py b/Movie_Directory_App_with_Layouts/app.py index 8adc517..d7431c7 100644 --- a/Movie_Directory_App_with_Layouts/app.py +++ b/Movie_Directory_App_with_Layouts/app.py @@ -13,7 +13,7 @@ def main(): - """Basics on st.beta columns/layout""" + """Basics on st.columns/layout""" menu = ["Home","Search","About"] choice = st.sidebar.selectbox("Menu",menu) @@ -50,7 +50,7 @@ def main(): # Layout # st.write(img_link) # st.image(img_link) - c1,c2,c3 = st.beta_columns([1,2,1]) + c1,c2,c3 = st.columns([1,2,1]) with c1: with st.beta_expander("Title"): @@ -79,7 +79,7 @@ def main(): df_for_year = df[df['year'].dt.year == movie_year] st.dataframe(df_for_year) - col1,col2,col3 = st.beta_columns([1,2,1]) + col1,col2,col3 = st.columns([1,2,1]) with col1: with st.beta_expander("Title"): diff --git a/Movie_Directory_App_with_Layouts/column_layout_tuts.py b/Movie_Directory_App_with_Layouts/column_layout_tuts.py index c0940b5..00cde7b 100644 --- a/Movie_Directory_App_with_Layouts/column_layout_tuts.py +++ b/Movie_Directory_App_with_Layouts/column_layout_tuts.py @@ -15,8 +15,8 @@ def main(): # st.text("Sidebar") # st.write(dir(st.sidebar)) - # Using st.beta_columns - col1,col2 = st.beta_columns(2) + # Using st.columns + col1,col2 = st.columns(2) # st.text("Beta Columns") # st.write(dir(col1)) @@ -45,7 +45,7 @@ def main(): elif choice == "Search": st.subheader("Search") # Different Layout - c1,c2,c3 = st.beta_columns([3,1,1]) + c1,c2,c3 = st.columns([3,1,1]) with c1: st.info("From Col 1") diff --git a/TextClassifierRiverMLApp/app.py b/TextClassifierRiverMLApp/app.py index b3e7233..4dea53f 100644 --- a/TextClassifierRiverMLApp/app.py +++ b/TextClassifierRiverMLApp/app.py @@ -66,7 +66,7 @@ def main(): if choice == "Home": st.subheader("Home") with st.form(key='mlform'): - col1,col2 = st.beta_columns([2,1]) + col1,col2 = st.columns([2,1]) with col1: message = st.text_area("Message") submit_message = st.form_submit_button(label='Predict') @@ -85,7 +85,7 @@ def main(): st.success("Data Submitted") - res_col1 ,res_col2 = st.beta_columns(2) + res_col1 ,res_col2 = st.columns(2) with res_col1: st.info("Original Text") st.write(message) @@ -124,7 +124,7 @@ def main(): - c1,c2 = st.beta_columns(2) + c1,c2 = st.columns(2) with c1: with st.beta_expander("Software Probability"): st.altair_chart(c_software_proba,use_container_width=True) diff --git a/Working_with_Streamlit_Forms/app.py b/Working_with_Streamlit_Forms/app.py index 872064a..2bfdfc9 100644 --- a/Working_with_Streamlit_Forms/app.py +++ b/Working_with_Streamlit_Forms/app.py @@ -14,7 +14,7 @@ def main(): # Salary Calculator # Combine forms + columns with st.form(key='salaryform'): - col1,col2,col3 = st.beta_columns([3,2,1]) + col1,col2,col3 = st.columns([3,2,1]) with col1: amount = st.number_input("Hourly Rate in $") diff --git a/how_to_add_session__state-settings-App/app.py b/how_to_add_session__state-settings-App/app.py index 5177b5e..d804d1f 100644 --- a/how_to_add_session__state-settings-App/app.py +++ b/how_to_add_session__state-settings-App/app.py @@ -58,7 +58,7 @@ def main(): # st.write("Counts[with session state]",st.session_state.counter_one) - col1,col2 = st.beta_columns(2) + col1,col2 = st.columns(2) with col1: increment = st.button("Increment By One") # Function @@ -85,7 +85,7 @@ def main(): st.session_state['fontsize'] = 12 - f1,f2 = st.beta_columns(2) + f1,f2 = st.columns(2) with f1: # Create a button for fxn/cb fxn diff --git a/sqlplayground_app/app.py b/sqlplayground_app/app.py index c421cf2..d2d3b43 100644 --- a/sqlplayground_app/app.py +++ b/sqlplayground_app/app.py @@ -32,7 +32,7 @@ def main(): st.subheader("HomePage") # Columns/Layout - col1,col2 = st.beta_columns(2) + col1,col2 = st.columns(2) with col1: with st.form(key='query_form'):