I am trying to figure out why my groupByKey is returning the following:
[(0, ), (1,
you can also use
example.groupByKey().mapValues(list)