SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to apply to all columns you can use:
df.apply(pd.value_counts)
This will apply a column based aggregation function (in this case value_counts) to each of the columns.