📜  groupby 后向量的 pandas 平均值 - Python 代码示例

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

代码示例1
# credit to the Stack Overflow user in source link
# vector is the label of a column containing fixed - size numpy (np) array
df.groupby('your_label')['vector'].apply(np.mean)