SQL : PySpark: custom function in aggregation on grouped data

Published --