How to display a (streamlit) bar chart of df['column_name'].value_counts() ?
To upload files, please first save the app
import streamlit as st
import pandas as pd
# Sample DataFrame
data = {'column_name': ['A', 'B', 'A', 'C', 'B', 'A', 'D']}
df = pd.DataFrame(data)
# Get value counts
distribution = df['column_name'].value_counts()
# Display bar chart
st.bar_chart(distribution)
Hi! I can help you with any questions about Streamlit and Python. What would you like to know?