hyzhang00 commited on
Commit
d657660
·
verified ·
1 Parent(s): 0014df0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -36
app.py CHANGED
@@ -648,43 +648,23 @@ def main():
648
  st.markdown("# FP2 Conclusion")
649
 
650
  st.markdown("""
651
- In FP2, we created interactive visualizations to analyze traffic accident data, focusing on trends, contributing factors, and safety implications.
652
- Each visualization provides specific insights and helps users make data-driven decisions to improve road safety.
 
 
 
 
 
 
 
 
 
 
 
 
 
653
  """)
654
-
655
- # Create columns for different visualizations' conclusions
656
- con1, con2, con3 = st.columns(3)
657
-
658
- with con1:
659
- st.markdown("""
660
- ### Crash Trend Over Time
661
- An interactive line chart showing annual crash patterns with an optional weather filter, helping identify:
662
- * Long-term accident trends
663
- * Weather-related correlations
664
- * Seasonal patterns in crash frequencies
665
- * Peak accident periods
666
- """)
667
-
668
- with con2:
669
- st.markdown("""
670
- ### Severity of Violations Across Age Groups
671
- Visualizes crash severities by violation types and driver age groups:
672
- * Age-specific violation patterns
673
- * High-risk behavior identification
674
- * Severity distribution analysis
675
- * Targeted intervention opportunities
676
- """)
677
-
678
- with con3:
679
- st.markdown("""
680
- ### Distribution of Incidents
681
- A comprehensive analysis of incidents by various factors:
682
- * Collision manner analysis
683
- * Surface condition impacts
684
- * Gender-based patterns
685
- * Environmental factor effects
686
- * Time-based distribution
687
- """)
688
 
689
 
690
  if __name__ == "__main__":
 
648
  st.markdown("# FP2 Conclusion")
649
 
650
  st.markdown("""
651
+ In FP2, we created interactive visualizations to analyze traffic accident data, focusing on trends, contributing factors, and safety implications. Each visualization provides specific insights and helps users make data-driven decisions to improve road safety.
652
+
653
+ - **Crash Trend Over Time**: An interactive line chart showing annual crash patterns with an optional weather filter, helping identify trends and weather-related correlations.
654
+
655
+ - **Severity of Violations Across Age Groups**: Visualizes crash severities by violation types and driver age groups, aiding targeted safety campaigns and interventions.
656
+
657
+ - **Distribution of Incidents by Collision Manner**: A bar chart linking traffic incidents with factors like surface conditions and gender, offering insights into injury severity trends.
658
+
659
+ - **Injuries and Fatalities Trends**: Displays monthly injuries and fatalities, highlighting seasonal variations and high-risk periods, with unit-type filtering for detailed analysis.
660
+
661
+ - **Traffic Crash Location Map**: Combines marker clusters and heatmaps to reveal accident hotspots and severity patterns, guiding safety improvements and urban planning.
662
+
663
+ In Part 3, we plan to enhance interactivity by linking visualizations, such as dynamically updating a map and bar chart for a more seamless data exploration experience.
664
+
665
+ These tools empower stakeholders to address risks, implement safety measures, and prioritize infrastructure upgrades for safer roads.
666
  """)
667
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
668
 
669
 
670
  if __name__ == "__main__":