adrianpierce commited on
Commit
0d65562
1 Parent(s): 72d02aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -56,9 +56,8 @@ with col3:
56
  select_cuisine_sim = st.selectbox('Select a cuisine to view the 10 most similar cuisines by spices',cuisines.keys())
57
  st.write(f'{select_cuisine_sim} is most similar to:', cuisine_similarity[select_cuisine_sim].sort_values(ascending=False).index[1:11].to_list())
58
 
59
-
60
  count = pd.DataFrame(pivot.T.sum().sort_values(ascending=False).reset_index().rename(columns={0: "Count"}))
61
- fig_bar = px.bar(count, x="Spice", y="Count")
62
  st.plotly_chart(fig_bar, use_container_width=True)
63
 
64
  # Create a graph
 
56
  select_cuisine_sim = st.selectbox('Select a cuisine to view the 10 most similar cuisines by spices',cuisines.keys())
57
  st.write(f'{select_cuisine_sim} is most similar to:', cuisine_similarity[select_cuisine_sim].sort_values(ascending=False).index[1:11].to_list())
58
 
 
59
  count = pd.DataFrame(pivot.T.sum().sort_values(ascending=False).reset_index().rename(columns={0: "Count"}))
60
+ fig_bar = px.bar(count, x="Spice", y="Count", title="Most Frequently Occuring Spices Across Cuisines")
61
  st.plotly_chart(fig_bar, use_container_width=True)
62
 
63
  # Create a graph