Answers for "how to see the count of each category in a dataframe"

1

how to see the count of each category in a dataframe

# pandas count distinct values in column
df['sex'].value_counts()
Code language: Python (python)
Posted by: Guest on March-17-2022

Code answers related to "how to see the count of each category in a dataframe"

Browse Popular Code Answers by Language