You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Li Jin (JIRA)" <ji...@apache.org> on 2017/10/13 14:04:00 UTC

[jira] [Created] (SPARK-22274) Used-defined aggregation functions with pandas udf

Li Jin created SPARK-22274:
------------------------------

             Summary: Used-defined aggregation functions with pandas udf
                 Key: SPARK-22274
                 URL: https://issues.apache.org/jira/browse/SPARK-22274
             Project: Spark
          Issue Type: Sub-task
          Components: PySpark
    Affects Versions: 2.2.0
            Reporter: Li Jin


{code:java}
@pandas_udf(DoubleType())
def mean(v)
      return v.mean()

df.groupby('id').apply(mean(df.v1), mean(df.v2))
{code}




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org