我有一个9000万行多维列表
source, target, bayesscore, mean, sd
[['a','1',45.67,-18.34324,15.06]
['a','2',45.32,-18.2234,18.77]
['a','3',44.96,-18.3359,19.24]
['a','4',45.09,-18.13243,21.343]
['a','5',43.82,-18.73456,22.353]
['b','2',43.72,-16.43,11.02] and so on...]
我从数据库导入此列表,我的目标是预先计算每个源的值。
foreach源 - 目标对:
我目前正在大熊猫中这样做,但它真的很慢。
您是否有任何关于如何更快地完成此过程的建议?