spatel54 commited on
Commit
e284ed9
·
verified ·
1 Parent(s): d266120

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +6 -6
src/streamlit_app.py CHANGED
@@ -145,10 +145,10 @@ df_top = df[df['crm_cd_desc'].isin(top_crimes)]
145
  heatmap1_data = df_top.groupby(['crm_cd_desc', 'year']).size().unstack(fill_value=0)
146
 
147
  # Create the heat map.
148
- plt.figure(figsize=(10, 6))
149
  sns.heatmap(heatmap1_data, annot=True, fmt="d", cmap="YlOrRd")
150
- plt.title("Top 10 Crime Types by Year")
151
- plt.xlabel("Year")
152
- plt.ylabel("Crime Type")
153
- plt.tight_layout()
154
- plt.show()
 
145
  heatmap1_data = df_top.groupby(['crm_cd_desc', 'year']).size().unstack(fill_value=0)
146
 
147
  # Create the heat map.
148
+ alt.figure(figsize=(10, 6))
149
  sns.heatmap(heatmap1_data, annot=True, fmt="d", cmap="YlOrRd")
150
+ alt.title("Top 10 Crime Types by Year")
151
+ alt.xlabel("Year")
152
+ alt.ylabel("Crime Type")
153
+ alt.tight_layout()
154
+ alt.show()