I created a function which returns a table of 20 columns and 286 rows. I would like to run this specific function using the spark_apply function with a group_by statement. W