Name

问题描述 投票:0回答:1

我有一个只有 "名称 "和 "值 "列的 dask 数据框,类似于下面的表格。

enter image description here

我如何计算 "平均 "列?我试过在 dash 中使用 groupby,但这只是给我一个包含 A 和 B 的平均值的 2 条记录的数据框。

python-3.x pandas dask dask-dataframe
1个回答
1
投票

Name:

small = small.repartition(npartitions=1)
result = big.merge(small)
© www.soinside.com 2019 - 2024. All rights reserved.