can someone help me with these questions how to implement in java spark
1.question
id|count|
+—+—–+
| a| 3|
| b| 2|
| c| 4|
+—+—–+
output:
a
a
a
a
b
b
c
c
c
c
2.name|course|
+—+—–+
| a| x|
| b| y|
| a| z|
b k
output:
name course
a x,z
b y,k
I tried different ways using for each am not even close to the output am looking for am not getting any idea how to implement this
New contributor
maturi nagababu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.