Counts and frequencies

The count is the number of observations that have a given category or value, and the frequency is the corresponding share of the total, expressed as a proportion or a percentage. Count and frequency tables summarize the distribution of a variable, especially a qualitative one.

Example

df['ville'].value_counts()  # counts; value_counts(normalize=True) for frequencies

Related concepts

The whole glossary