Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9B6BF200D20 for ; Tue, 17 Oct 2017 16:31:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 995D71609DE; Tue, 17 Oct 2017 14:31:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DC5A31609D7 for ; Tue, 17 Oct 2017 16:31:07 +0200 (CEST) Received: (qmail 74732 invoked by uid 500); 17 Oct 2017 14:31:07 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 74723 invoked by uid 99); 17 Oct 2017 14:31:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Oct 2017 14:31:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 317921807FA for ; Tue, 17 Oct 2017 14:31:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id r8DZCNBfwylZ for ; Tue, 17 Oct 2017 14:31:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 3273F5FBC0 for ; Tue, 17 Oct 2017 14:31:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id A6DD0E00B3 for ; Tue, 17 Oct 2017 14:31:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 69AC121EE3 for ; Tue, 17 Oct 2017 14:31:00 +0000 (UTC) Date: Tue, 17 Oct 2017 14:31:00 +0000 (UTC) From: "Apache Spark (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SPARK-20396) groupBy().apply() with pandas udf in pyspark MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 17 Oct 2017 14:31:08 -0000 [ https://issues.apache.org/jira/browse/SPARK-20396?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D162= 07711#comment-16207711 ]=20 Apache Spark commented on SPARK-20396: -------------------------------------- User 'ueshin' has created a pull request for this issue: https://github.com/apache/spark/pull/19517 > groupBy().apply() with pandas udf in pyspark > -------------------------------------------- > > Key: SPARK-20396 > URL: https://issues.apache.org/jira/browse/SPARK-20396 > Project: Spark > Issue Type: Sub-task > Components: PySpark, SQL > Affects Versions: 2.1.0 > Reporter: Li Jin > Assignee: Li Jin > Fix For: 2.3.0 > > > split-apply-merge is a common pattern when analyzing data. It is implemen= ted in many popular data analyzing libraries such as Spark, Pandas, R, and = etc. Split and merge operations in these libraries are similar to each othe= r, mostly implemented by certain grouping operators. For instance, Spark Da= taFrame has groupBy, Pandas DataFrame has groupby. Therefore, for users fam= iliar with either Spark DataFrame or pandas DataFrame, it is not difficult = for them to understand how grouping works in the other library. However, ap= ply is more native to different libraries and therefore, quite different be= tween libraries. A pandas user knows how to use apply to do curtain transfo= rmation in pandas might not know how to do the same using pyspark. Also, th= e current implementation of passing data from the java executor to python e= xecutor is not efficient, there is opportunity to speed it up using Apache = Arrow. This feature can enable use cases that uses Spark's grouping operato= rs such as groupBy, rollUp, cube, window and Pandas's native apply operator= . > Related work: > SPARK-13534 > This enables faster data serialization between Pyspark and Pandas using A= pache Arrow. Our work will be on top of this and use the same serialization= for pandas udf. > SPARK-12919 and SPARK-12922 > These implemented two functions: dapply and gapply in Spark R which imple= ments the similar split-apply-merge pattern that we want to implement with = Pyspark.=20 -- 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