Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions sqlplayground_app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand All @@ -41,7 +41,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)

Expand All @@ -53,10 +53,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)

Expand All @@ -70,4 +70,3 @@ def main():

if __name__ == '__main__':
main()