Skip to content

Instantly share code, notes, and snippets.

@rian-dolphin
Created May 27, 2022 13:15
Show Gist options
  • Save rian-dolphin/202f0c0a1a7eb7b6135b9f0db5306ef4 to your computer and use it in GitHub Desktop.
Save rian-dolphin/202f0c0a1a7eb7b6135b9f0db5306ef4 to your computer and use it in GitHub Desktop.
# -- Get the user input
year_col, continent_col, log_x_col = st.columns([5, 5, 5])
with year_col:
year_choice = st.slider(
"What year would you like to examine?",
min_value=1952,
max_value=2007,
step=5,
value=2007,
)
with continent_col:
continent_choice = st.selectbox(
"What continent would you like to look at?",
("All", "Asia", "Europe", "Africa", "Americas", "Oceania"),
)
with log_x_col:
log_x_choice = st.checkbox("Log X Axis?")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment