I have a PCollection which consists of an ID column and seven value columns. There are several rows for each ID.
I would like to compute the mean of the seven columns per unique ID.
Is there a way to achieve this without going through each element programmatically and creating key/value pair per each element?