Spaces:
Sleeping
Sleeping
liberatoratif
commited on
Commit
•
4587c55
1
Parent(s):
b6553fa
Update app.py
Browse files
app.py
CHANGED
@@ -128,5 +128,6 @@ 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]) width=1200, height=700)
|
|
|
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.dataframe(pd.DataFrame(crime[crime['year'] == yearcol7].Location.value_counts()))
|
133 |
st.plotly_chart(ba)
|