You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sohum Sachdev (JIRA)" <ji...@apache.org> on 2017/10/07 09:05:02 UTC
[jira] [Commented] (SPARK-19428) Ability to select first row of
groupby
[ https://issues.apache.org/jira/browse/SPARK-19428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16195617#comment-16195617 ]
Sohum Sachdev commented on SPARK-19428:
---------------------------------------
[~lminer] This is a very interesting point you brought up. I think it will make things much easier and we wouldn't need to use the Window function. I plan to take this task up and try to code a solution. Will add the PR link to this story when it's ready :)
> Ability to select first row of groupby
> --------------------------------------
>
> Key: SPARK-19428
> URL: https://issues.apache.org/jira/browse/SPARK-19428
> Project: Spark
> Issue Type: Brainstorming
> Components: SQL
> Affects Versions: 2.1.0
> Reporter: Luke Miner
> Priority: Minor
>
> It would be nice to be able to select the first row from {{GroupedData}}. Pandas has something like this:
> {{df.groupby('group').first()}}
> It's especially handy if you can order the group as well.
--
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