Количество частот значений в пандах
df['column_name'].value_counts()
df.groupby(['column_name']).count()
#Each returns the results in a pandas Series.
Kwams
df['column_name'].value_counts()
df.groupby(['column_name']).count()
#Each returns the results in a pandas Series.