Spaces:
Runtime error
Runtime error
Changed % charts to Pie chart view
Browse files119 unmodified lines120121122123124125126127128129130131132133134119 unmodified lines)st.plotly_chart(fig_count, use_container_width=True)with col2:# Bar chart of percentagesfig_percent = px.bar(x=value_percentages.index,y=value_percentages.values,title=f"Percentage Distribution of {col_name}",labels={'x': col_name, 'y': 'Percentage (%)'})st.plotly_chart(fig_percent, use_container_width=True)# Display frequency tablefreq_df = pd.DataFrame({119 unmodified lines120121122123124125126127128129130131132133134135136137138139140141142143144145119 unmodified lines)st.plotly_chart(fig_count, use_container_width=True)# with col2:# # Bar chart of percentages# fig_percent = px.bar(# x=value_percentages.index,# y=value_percentages.values,# title=f"Percentage Distribution of {col_name}",# labels={'x': col_name, 'y': 'Percentage (%)'}# )# st.plotly_chart(fig_percent, use_container_width=True)with col2:# Pie chart of percentagesfig_percent = px.pie(names=value_percentages.index,values=value_percentages.values,title=f"Percentage Distribution of {col_name}",hole=0.3 # Optional: to make it a donut chart)st.plotly_chart(fig_percent, use_container_width=True)# Display frequency tablefreq_df = pd.DataFrame({
app.py+16-5