Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-19428

Ability to select first row of groupby

    XMLWordPrintableJSON

    Details

    • Type: Brainstorming
    • Status: Resolved
    • Priority: Minor
    • Resolution: Incomplete
    • Affects Version/s: 2.1.0
    • Fix Version/s: None
    • Component/s: SQL
    • Labels:

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lminer Luke Miner
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: