[ https://issues.apache.org/jira/browse/SPARK-22274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Takuya Ueshin resolved SPARK-22274. ----------------------------------- Resolution: Fixed Fix Version/s: 2.4.0 Issue resolved by pull request 19872 [https://github.com/apache/spark/pull/19872] > User-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 > Assignee: Li Jin > Priority: Major > Fix For: 2.4.0 > > > This function doesn't implement partial aggregation and shuffles all data. A > uadf that supports partial aggregation is not covered by this Jira. > Exmaple: > {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 (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org