Command
df["col"].value_countsExplanation
Series.value_counts() counts the frequency of unique values.
Examples
Frequency of values
df["col"].value_counts()Relative frequency of values
df["col"].value_counts(normalize=True)df["col"].value_countsSeries.value_counts() counts the frequency of unique values.
Frequency of values
df["col"].value_counts()Relative frequency of values
df["col"].value_counts(normalize=True)