make value counts a column in pandas code example
Example 1: Find the value counts for the column 'your_column'
df["your_column"].value_counts()
Example 2: pandas count values by column
df = pd.DataFrame({'a':list('abssbab')})
df.groupby('a').count()