Framby commited on
Commit
7f7f74a
·
verified ·
1 Parent(s): 474bcaa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -88,14 +88,12 @@ with col1:
88
  st.plotly_chart(fig, use_container_width=True)
89
 
90
  with col2:
91
- st.markdown("### Tags")
92
  parsed_tags = Y.apply(ast.literal_eval)
93
  all_tags = [tag for sublist in parsed_tags for tag in sublist]
94
  tag_freq = Counter(all_tags)
95
- most_common_tags = pd.DataFrame(
96
- tag_freq.most_common(20), columns=['Tag', 'Nombre'])
97
- fig2 = px.bar(most_common_tags, x='Tag', y='Nombre',
98
- title="20 tags les plus fréquents")
99
  st.plotly_chart(fig2, use_container_width=True)
100
 
101
  st.markdown("### Nuage de mots")
 
88
  st.plotly_chart(fig, use_container_width=True)
89
 
90
  with col2:
91
+ st.markdown("### Tags")
92
  parsed_tags = Y.apply(ast.literal_eval)
93
  all_tags = [tag for sublist in parsed_tags for tag in sublist]
94
  tag_freq = Counter(all_tags)
95
+ most_common_tags = pd.DataFrame(tag_freq.most_common(20), columns=['Tag', 'Nombre'])
96
+ fig2 = px.bar(most_common_tags, x='Tag', y='Nombre', title="20 tags les plus fréquents")
 
 
97
  st.plotly_chart(fig2, use_container_width=True)
98
 
99
  st.markdown("### Nuage de mots")