Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python plot frequency of column values

# Plot frequency
my_df['my_var'].value_counts().plot.bar()

# Add column freq to the DF
df['freq']=df.groupby(by='Name')['Name'].transform('count')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #plot #frequency #column #values
ADD COMMENT
Topic
Name
1+1 =