Spaces:
Sleeping
Sleeping
liberatoratif
commited on
Commit
•
b6553fa
1
Parent(s):
9194817
Update app.py
Browse files
app.py
CHANGED
@@ -128,5 +128,5 @@ st.markdown("<hr>", unsafe_allow_html=True)
|
|
128 |
st.markdown("<h4 style='text-align: centre; color: red;'>MOST COMMON TYPES OF PLACES WHERE CRIMES OCCUR</h4>",
|
129 |
unsafe_allow_html=True)
|
130 |
yearcol7 = st.selectbox('Select Year', [2020, 2021, 2022, 2023], key = 'year8')
|
131 |
-
ba = px.bar(pd.DataFrame(crime[crime['year'] == yearcol7].Location.value_counts()[:25])
|
132 |
st.plotly_chart(ba)
|
|
|
128 |
st.markdown("<h4 style='text-align: centre; color: red;'>MOST COMMON TYPES OF PLACES WHERE CRIMES OCCUR</h4>",
|
129 |
unsafe_allow_html=True)
|
130 |
yearcol7 = st.selectbox('Select Year', [2020, 2021, 2022, 2023], key = 'year8')
|
131 |
+
ba = px.bar(pd.DataFrame(crime[crime['year'] == yearcol7].Location.value_counts()[:25]) width=1200, height=700)
|
132 |
st.plotly_chart(ba)
|