Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -82,6 +82,7 @@ def create_severity_violation_chart(df, age_group=None):
|
|
82 |
title=f'Crash Severity Distribution by Violation Type - {age_group}',
|
83 |
labels={'count': 'Number of Incidents', 'Violation': 'Violation Type'},
|
84 |
color_discrete_map=severity_colors,
|
|
|
85 |
|
86 |
)
|
87 |
|
@@ -752,10 +753,15 @@ def main():
|
|
752 |
st.markdown("---")
|
753 |
|
754 |
# Add conclusion section
|
755 |
-
st.markdown("#
|
756 |
|
757 |
st.markdown("""
|
758 |
-
|
|
|
|
|
|
|
|
|
|
|
759 |
""")
|
760 |
|
761 |
|
|
|
82 |
title=f'Crash Severity Distribution by Violation Type - {age_group}',
|
83 |
labels={'count': 'Number of Incidents', 'Violation': 'Violation Type'},
|
84 |
color_discrete_map=severity_colors,
|
85 |
+
width=900,
|
86 |
|
87 |
)
|
88 |
|
|
|
753 |
st.markdown("---")
|
754 |
|
755 |
# Add conclusion section
|
756 |
+
st.markdown("# Summary and Conclusion")
|
757 |
|
758 |
st.markdown("""
|
759 |
+
|
760 |
+
This project analyzed traffic accident data for Tempe, Arizona, using interactive visualizations to uncover critical trends and patterns. Key visualizations included crash trends over time, severity analysis by age and violations, injury and fatality trends, and the distribution of incidents across factors like weather and collision manner.
|
761 |
+
|
762 |
+
A highlight was the integration of linked visualizations, such as bar charts and dynamic maps, enabling users to explore data interactively. This linkage allowed for seamless filtering and focused analysis of severity and location patterns, making it easier to identify high-risk areas and contributing factors.
|
763 |
+
|
764 |
+
These insights are invaluable for city planners, traffic authorities, and safety advocates, helping them design targeted interventions, allocate resources effectively, and improve overall road safety in Tempe.
|
765 |
""")
|
766 |
|
767 |
|