我有一个数据集,其中包含了世界上每个国家的男性和女性人数。
"country","sex","amount"
"Afghanistan","men","number"
"Afghanistan","women","number"
"Albania","men","number"
"Albania","women","number"...
我想在每对国家/地区行添加合并,并删除性别列,以便我最终得到:
"country","amount"
"Afghanistan","number"
"Albania","number"
如何在Google / Open Refine中以这种方式将行添加到一起?
答案 0 :(得分:0)
forEach(value.split(','),a,a.toNumber()).sum()