how to find all different values of a dataframe colum for a specific class and the count of ocurences code example
Example 1: how to count special values in data in python
df['sex'].value_counts()
Example 2: how to count special values in data in python
df['fare'].value_counts(bins=7)