spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Li Jin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-22274) User-defined aggregation functions with pandas udf
Date Fri, 17 Nov 2017 15:35:00 GMT

    [ https://issues.apache.org/jira/browse/SPARK-22274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16257120#comment-16257120
] 

Li Jin commented on SPARK-22274:
--------------------------------

Absolutely.

> 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
>
> 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
(v6.4.14#64029)

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


Mime
View raw message