I would like to use Python to find the matching arrays such as [4012630, 0.07575758]
and [4012630, 0.5671642]
. Then I would like to combine them into 1 array and add the decimals. So it would become [4012630, 0.64292178]
.
Goal is to convert this array:
[[4012630, 0.07575758],
[4012618, 0.014925373],
[4012630, 0.5671642],
[4012624, 0.029850746],
[4012628, 0.41791046],
[4012624, 0.07462686],
[4012628, 0.04477612],
[4012636, 0.2820513]]
Into this array:
[[4012630, 0.64292178],
[4012618, 0.014925373],
[4012624, 0.104477606],
[4012628, 0.46268658,
[4012636, 0.2820513]]