Applying UDFs on GroupedData in PySpark (with functioning python example)
I have this python code that runs locally in a pandas dataframe: df_result = pd.DataFrame(df .groupby('A') .apply(lambda x: myFunction(zip(x.B, ...