From a484a6be4f79787104bba774709360d77333eb0d Mon Sep 17 00:00:00 2001 From: SREEHARI S <48482060+sree-hari-s@users.noreply.github.com> Date: Fri, 8 Sep 2023 12:41:50 +0530 Subject: [PATCH 1/2] updated outdated code beta_expander changed to expander beta_columns changed to columns --- sqlplayground_app/app.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sqlplayground_app/app.py b/sqlplayground_app/app.py index c421cf2..62cc588 100644 --- a/sqlplayground_app/app.py +++ b/sqlplayground_app/app.py @@ -1,3 +1,4 @@ +@@ -0,0 +1,73 @@ # Core Pkgs import streamlit as st import pandas as pd @@ -32,7 +33,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'): @@ -41,7 +42,7 @@ def main(): # Table of Info - with st.beta_expander("Table Info"): + with st.expander("Table Info"): table_info = {'city':city,'country':country,'countrylanguage':countrylanguage} st.json(table_info) @@ -53,10 +54,10 @@ def main(): # Results query_results = sql_executor(raw_code) - with st.beta_expander("Results"): + with st.expander("Results"): st.write(query_results) - with st.beta_expander("Pretty Table"): + with st.expander("Pretty Table"): query_df = pd.DataFrame(query_results) st.dataframe(query_df) @@ -70,4 +71,3 @@ def main(): if __name__ == '__main__': main() - From 88d2666353a9549e136d2f628bb08843b9857226 Mon Sep 17 00:00:00 2001 From: SREEHARI S <48482060+sree-hari-s@users.noreply.github.com> Date: Fri, 8 Sep 2023 12:44:29 +0530 Subject: [PATCH 2/2] Update app.py --- sqlplayground_app/app.py | 1 - 1 file changed, 1 deletion(-) diff --git a/sqlplayground_app/app.py b/sqlplayground_app/app.py index 62cc588..59d0fb9 100644 --- a/sqlplayground_app/app.py +++ b/sqlplayground_app/app.py @@ -1,4 +1,3 @@ -@@ -0,0 +1,73 @@ # Core Pkgs import streamlit as st import pandas as pd