Update src/streamlit_app.py
Browse files- 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 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 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":
|