title: Pyspark data frame aggregation with user defined function
body: <p>How can I use the 'groupby(key).agg(' with a user defined functions? Specifically I need a list of all unique values per key [not count]. </p>