vgosavi2 commited on
Commit
5a67e5c
·
verified ·
1 Parent(s): 9e667cc

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +9 -8
src/streamlit_app.py CHANGED
@@ -90,14 +90,15 @@ years = sorted(df["year"].dropna().astype(int).unique())
90
  options = ["All"] + years
91
 
92
  # Year filter (shorter, above chart)
93
- col_empty, col_filter = st.columns([3,1])
94
- with col_filter:
95
- selected_year = st.selectbox(
96
- "Select Year",
97
- options=options,
98
- index=0, # default to “All”
99
- key="year_filter"
100
- )
 
101
 
102
  # Filter according to selection
103
  if selected_year == "All":
 
90
  options = ["All"] + years
91
 
92
  # Year filter (shorter, above chart)
93
+ selected_year = st.selectbox("Select Year", options, index=0)
94
+ # col_empty, col_filter = st.columns([3,1])
95
+ # with col_filter:
96
+ # selected_year = st.selectbox(
97
+ # "Select Year",
98
+ # options=options,
99
+ # index=0, # default to “All”
100
+ # key="year_filter"
101
+ # )
102
 
103
  # Filter according to selection
104
  if selected_year == "All":