Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -244,9 +244,6 @@ def create_injuries_fatalities_chart(crash_data):
|
|
244 |
return line_chart
|
245 |
|
246 |
def create_crash_trend_chart(df, weather=None):
|
247 |
-
"""
|
248 |
-
Creates a line graph showing crash trends over time, optionally filtered by weather condition.
|
249 |
-
"""
|
250 |
# Filter by weather condition if provided
|
251 |
if weather and weather != 'All Conditions':
|
252 |
df = df[df['Weather'] == weather]
|
|
|
244 |
return line_chart
|
245 |
|
246 |
def create_crash_trend_chart(df, weather=None):
|
|
|
|
|
|
|
247 |
# Filter by weather condition if provided
|
248 |
if weather and weather != 'All Conditions':
|
249 |
df = df[df['Weather'] == weather]
|