Streamlit Side Bar

Instead of having your widgets on the main section of the app, you can have them on the sidebar. This is done by appending st.sidebar to the widget elements.

if st.sidebar.checkbox(“Click to show table”, key = “Sidebar Checkbox”): st.table(df.sample(5))

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy