Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dataframe summarize how many in each column

In [8]: titanic[["Sex", "Age"]].groupby("Sex").mean()
Out[8]: 
              Age
Sex              
female  27.915709
male    30.726645
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #dataframe #summarize #column
ADD COMMENT
Topic
Name
9+1 =