Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -105,7 +105,11 @@ if page == "Weather & Injuries":
|
|
| 105 |
).properties(height=450)
|
| 106 |
st.altair_chart(chart, use_container_width=True)
|
| 107 |
|
| 108 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
st.header("Speeding-Related Crash Trends")
|
| 110 |
st.markdown("How often is speeding involved in crashes over the years?")
|
| 111 |
|
|
@@ -118,6 +122,11 @@ elif page == "🚗 Speeding Trends":
|
|
| 118 |
).properties(height=450)
|
| 119 |
st.altair_chart(chart, use_container_width=True)
|
| 120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
elif page == "Crash Map":
|
| 122 |
st.header("Crash Locations in San José")
|
| 123 |
st.markdown("Zoom in to spot areas with high crash density.")
|
|
@@ -142,6 +151,10 @@ elif page == "Crash Map":
|
|
| 142 |
],
|
| 143 |
))
|
| 144 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
elif page == "Road Surface Analysis":
|
| 146 |
st.header("Crash Count by Road Surface Condition")
|
| 147 |
st.markdown("Are certain road surface types more accident-prone?")
|
|
@@ -154,6 +167,11 @@ elif page == "Road Surface Analysis":
|
|
| 154 |
).properties(height=450)
|
| 155 |
st.altair_chart(chart, use_container_width=True)
|
| 156 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 157 |
elif page == "Injury Correlation":
|
| 158 |
st.header("Correlation Among Injury Stats")
|
| 159 |
st.markdown("Explore numeric relationships between injury types and year.")
|
|
|
|
| 105 |
).properties(height=450)
|
| 106 |
st.altair_chart(chart, use_container_width=True)
|
| 107 |
|
| 108 |
+
|
| 109 |
+
# -----------------------------
|
| 110 |
+
# Speeding related crashes
|
| 111 |
+
# -----------------------------
|
| 112 |
+
elif page == "Speeding Trends":
|
| 113 |
st.header("Speeding-Related Crash Trends")
|
| 114 |
st.markdown("How often is speeding involved in crashes over the years?")
|
| 115 |
|
|
|
|
| 122 |
).properties(height=450)
|
| 123 |
st.altair_chart(chart, use_container_width=True)
|
| 124 |
|
| 125 |
+
|
| 126 |
+
# -----------------------------
|
| 127 |
+
# The cool stuff for marks
|
| 128 |
+
# -----------------------------
|
| 129 |
+
|
| 130 |
elif page == "Crash Map":
|
| 131 |
st.header("Crash Locations in San José")
|
| 132 |
st.markdown("Zoom in to spot areas with high crash density.")
|
|
|
|
| 151 |
],
|
| 152 |
))
|
| 153 |
|
| 154 |
+
# -----------------------------
|
| 155 |
+
# Road surface chart (we need to do more work on this one, the current visual can be improved)
|
| 156 |
+
# -----------------------------
|
| 157 |
+
|
| 158 |
elif page == "Road Surface Analysis":
|
| 159 |
st.header("Crash Count by Road Surface Condition")
|
| 160 |
st.markdown("Are certain road surface types more accident-prone?")
|
|
|
|
| 167 |
).properties(height=450)
|
| 168 |
st.altair_chart(chart, use_container_width=True)
|
| 169 |
|
| 170 |
+
|
| 171 |
+
# -----------------------------
|
| 172 |
+
# Correlation
|
| 173 |
+
# -----------------------------
|
| 174 |
+
|
| 175 |
elif page == "Injury Correlation":
|
| 176 |
st.header("Correlation Among Injury Stats")
|
| 177 |
st.markdown("Explore numeric relationships between injury types and year.")
|