Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

percent in pandas

sum(df['sex'] == 'man') / len(df)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #percent #pandas
ADD COMMENT
Topic
Name
2+7 =