Answers for "count true in a dataframe"

0

count true in a dataframe

df.has_cancer.value_counts()
Out[345]: 
False    6
True     1
Name: has_cancer, dtype: int64
Posted by: Guest on October-20-2021

Python Answers by Framework

Browse Popular Code Answers by Language