在Dask中,我需要基于第三列从两列的分组值计算加权平均值。() 在Pandas中,我耗尽了内存。在Dask中,我得到了: File "<ipython-input-16-0beb32700c04>", line 3, in <module>
File "/anaconda3/lib/python3.7/site-p
我在jupyter笔记本上运行代码。下面是我的代码:df.groupby(['cylinders','model year']).agg({'horsepower':'mean'})
基本上,我执行第一组的列‘柱体’和‘模型年’,然后执行聚合操作,以获得平均值。(['cylinders','model year