.value_counts(normalize=true) code example
Example 1: value count in python
col-name.value_count()
Example 2: relativefrequencies of the unique values pandas
df.value_counts(normalize=True)
col-name.value_count()
df.value_counts(normalize=True)