平均值(GroupedData)

計算每個數值欄位對每個群組的平均值。

mean 是 avg 的別名。

語法

mean(*cols)

參數

參數 類型 說明
cols str 數據行名稱。 非數字欄位則被忽略。

退貨

DataFrame