Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -129,7 +129,7 @@ def create_map(df, selected_year):
|
|
129 |
|
130 |
return m
|
131 |
|
132 |
-
def
|
133 |
|
134 |
# 5th visualization title
|
135 |
st.header("5. Total Injuries and Fatalities by Month")
|
@@ -301,7 +301,7 @@ def main():
|
|
301 |
)
|
302 |
|
303 |
# Create 5th Visualization: Injuries and fatalities chart
|
304 |
-
injuries_fatalities_chart =
|
305 |
st.altair_chart(injuries_fatalities_chart, use_container_width=True)
|
306 |
st.markdown("#### TODO: add write-up for this 5th chart.")
|
307 |
|
|
|
129 |
|
130 |
return m
|
131 |
|
132 |
+
def create_injuries_fatalities_chart(crash_data):
|
133 |
|
134 |
# 5th visualization title
|
135 |
st.header("5. Total Injuries and Fatalities by Month")
|
|
|
301 |
)
|
302 |
|
303 |
# Create 5th Visualization: Injuries and fatalities chart
|
304 |
+
injuries_fatalities_chart = create_injuries_fatalities_chart(df)
|
305 |
st.altair_chart(injuries_fatalities_chart, use_container_width=True)
|
306 |
st.markdown("#### TODO: add write-up for this 5th chart.")
|
307 |
|