count number of time a word appears in a column pandas 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)
df['sex'].value_counts()
df['fare'].value_counts(bins=7)