vgosavi2 commited on
Commit
e6da3fa
·
verified ·
1 Parent(s): c55a4cb

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -0
src/streamlit_app.py CHANGED
@@ -121,6 +121,7 @@ top_crimes["Count"] = pd.to_numeric(top_crimes["Count"], errors="coerce")
121
  top_crimes['Percentage'] = top_crimes['Count'] / top_crimes['Count'].sum()
122
 
123
  # ── Plotly pie chart ──
 
124
  top_crimes,
125
  names='Crime Type',
126
  values='Count',
 
121
  top_crimes['Percentage'] = top_crimes['Count'] / top_crimes['Count'].sum()
122
 
123
  # ── Plotly pie chart ──
124
+ fig = px.pie(
125
  top_crimes,
126
  names='Crime Type',
127
  values='Count',