I have this RDD (showing two elements):
[['a', [1, 2]], ['b', [3, 0]]]
and I'd like to add up elements in the list based on the index, so to have a final result
[4, 2]
how would I achieve this? I know the presence of first element ('a'/'b') is irrelevant as I could strip it out with a map so the question becomes how to sum column values.