Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Panda Python - Calculating what percentage of values are true and false out of total in boolean column

df['yourcolumns'].value_counts(normalize=True).mul(100).astype(str)+'%'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Panda #Python #Calculating #percentage #values #true #false #total #boolean #column
ADD COMMENT
Topic
Name
7+9 =