Answers for "dataframe summarize how many in each column"

0

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
Posted by: Guest on June-18-2021

Code answers related to "dataframe summarize how many in each column"

Python Answers by Framework

Browse Popular Code Answers by Language