I am new in spark and want support in solving below problem.I have a data like below:
Country value
India [1,2,3,4,5]
US [8,9,10,11,12]
US [7,6,5,4,3]
India [8,7,6,5,4]
and output required is the aggregation of element of vector of same country as below in spark.
Output:
Country value
India [9,9,9,9,9]
US [15,15,15,15,15]