getting the count of a specific character in the specific row of a dataframe column stack overflow 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['sex'].value_counts(normalize=True)