Spaces:
Build error
Build error
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -2
src/streamlit_app.py
CHANGED
|
@@ -42,7 +42,7 @@ def load_data():
|
|
| 42 |
return pd.read_csv(DATA_PATH)
|
| 43 |
|
| 44 |
# ββ 0. Page configuration ββ
|
| 45 |
-
if page == "
|
| 46 |
st.set_page_config(
|
| 47 |
page_title="Analyze Crime Distributions",
|
| 48 |
page_icon="π",
|
|
@@ -105,7 +105,6 @@ if page == "Home":
|
|
| 105 |
st.write(f"Total records: {df.shape[0]} | Total columns: {df.shape[1]}")
|
| 106 |
st.dataframe(df.head())
|
| 107 |
|
| 108 |
-
elif page == "Pie Chart":
|
| 109 |
# Pie Chart 1: Top 10 Crime Types
|
| 110 |
st.markdown("<div class='title'><h1> Top 10 Crime Type </h1></div>", unsafe_allow_html=True)
|
| 111 |
|
|
|
|
| 42 |
return pd.read_csv(DATA_PATH)
|
| 43 |
|
| 44 |
# ββ 0. Page configuration ββ
|
| 45 |
+
if page == "Pie Chart":
|
| 46 |
st.set_page_config(
|
| 47 |
page_title="Analyze Crime Distributions",
|
| 48 |
page_icon="π",
|
|
|
|
| 105 |
st.write(f"Total records: {df.shape[0]} | Total columns: {df.shape[1]}")
|
| 106 |
st.dataframe(df.head())
|
| 107 |
|
|
|
|
| 108 |
# Pie Chart 1: Top 10 Crime Types
|
| 109 |
st.markdown("<div class='title'><h1> Top 10 Crime Type </h1></div>", unsafe_allow_html=True)
|
| 110 |
|