📜  pandas 汇总所有列 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:37.469000             🧑  作者: Mango

代码示例2
In [8]: titanic[["Sex", "Age"]].groupby("Sex").mean()
Out[8]: 
              Age
Sex              
female  27.915709
male    30.726645