Spaces:
Build error
Build error
Added import statements
Browse files- 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 |
-
|
| 154 |
-
|
| 155 |
-
|
|
|
|
| 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()
|