Daniel Cerda Escobar commited on
Commit
6fc338f
·
1 Parent(s): a26f7df

Display data

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -201,16 +201,9 @@ with col2:
201
  hide_index = True,
202
  )
203
  with tab4:
204
- col1,col2,col3 = st.columns([1,2,1])
205
  with col2:
206
- st.dataframe(
207
- st.session_state["output_4"],
208
- column_config = {
209
- 'category' : 'Category',
210
- 'count' : 'Number of Elements',
211
- },
212
- use_container_width = True,
213
- hide_index = True,
214
- )
215
 
216
 
 
201
  hide_index = True,
202
  )
203
  with tab4:
204
+ col1,col2,col3 = st.columns([1,4,1])
205
  with col2:
206
+ chart_data = st.session_state["output_4"]
207
+ st.bar_chart(chart_data[['category','count']])
 
 
 
 
 
 
 
208
 
209