I am workig with PySpark and have a dataframe looking like this example below:
I want to group by req and apply a function on each group by. My function looks som