jinwenz2 commited on
Commit
cade28d
·
verified ·
1 Parent(s): 3c95e1f

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +4 -0
src/streamlit_app.py CHANGED
@@ -285,6 +285,10 @@ def crime_map(year, crime):
285
  # Call the function with selected values
286
  crime_map(year_dropdown, crime_dropdown)
287
 
 
 
 
 
288
  ### Use this one!!!
289
  # Count the crime type and list out the top 10 crime type that have the most cases.
290
  top_crimes = df['crm_cd_desc'].value_counts().nlargest(10).index
 
285
  # Call the function with selected values
286
  crime_map(year_dropdown, crime_dropdown)
287
 
288
+ st.markdown("""
289
+ This visualization shows the distribution of different years versus crime types in geospatial space by overlaying crime event points on a map of county boundaries. We chose a static map combined with GeoPandas and Matplotlib in order to clearly present county boundaries relative to crime events in space, suitable for reporting or analyzing output. The background of the map is coded with the shape of the county boundaries in gray, and the foreground is coded with red dots to indicate specific crime events, with the latitude and longitude position of each point coding its geographic coordinates.
290
+ """)
291
+
292
  ### Use this one!!!
293
  # Count the crime type and list out the top 10 crime type that have the most cases.
294
  top_crimes = df['crm_cd_desc'].value_counts().nlargest(10).index