spatel54 commited on
Commit
414053c
Β·
verified Β·
1 Parent(s): 530de73

Added import statements

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +6 -3
src/streamlit_app.py CHANGED
@@ -1,9 +1,12 @@
1
  import streamlit as st
2
  import seaborn as sns
3
  import pandas as pd
 
4
  import altair as alt
5
  from pathlib import Path
6
  import plotly.express as px
 
 
7
 
8
  # ── 0. Page configuration ──
9
  st.set_page_config(
@@ -150,6 +153,6 @@ plt.figure(figsize=(10, 6))
150
  sns.heatmap(heatmap1_data, annot=True, fmt="d", cmap="YlOrRd")
151
  plt.title("Top 10 Crime Types by Year")
152
  plt.xlabel("Year")
153
- alt.ylabel("Crime Type")
154
- alt.tight_layout()
155
- alt.show()
 
1
  import streamlit as st
2
  import seaborn as sns
3
  import pandas as pd
4
+ import matplotlib.pyplot as plt
5
  import altair as alt
6
  from pathlib import Path
7
  import plotly.express as px
8
+ import geopandas as gpd
9
+
10
 
11
  # ── 0. Page configuration ──
12
  st.set_page_config(
 
153
  sns.heatmap(heatmap1_data, annot=True, fmt="d", cmap="YlOrRd")
154
  plt.title("Top 10 Crime Types by Year")
155
  plt.xlabel("Year")
156
+ plt.ylabel("Crime Type")
157
+ plt.tight_layout()
158
+ plt.show()