I wrote a pandas udf to solve a problem. There are in Spark 2.4 there are three types of pandas_udfs: SCALAR, GROUPED_MAP, and GROUPED_AGG.
For the problem I was working on today using a GROUPED_AGG would have allowed a simpler and more efficient solution, but I had to go with a GROUPED_MAP since we only have Spark 2.3.1. So it would be nice to have the latest version if feasible.