how to plot count on column of dataframe

103

how to plot count on column of dataframe -

df1['Winner'].value_counts().plot.bar()

python count variable and put the count in a column of data frame -

df['freq'] = df.groupby('myvar')['myvar'].transform('count')

Comments

Submit
0 Comments