Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python dataframe find no of true

df.col_name.value_counts()
Out[345]: 
False    6
True     1
Name: has_cancer, dtype: int64
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #dataframe #find #true
ADD COMMENT
Topic
Name
8+3 =