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

Ability to select first row of groupby

    XMLWordPrintableJSON

Details

    • Brainstorming
    • Status: Resolved
    • Minor
    • Resolution: Incomplete
    • 2.1.0
    • None
    • SQL

    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

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

            Dates

              Created:
              Updated:
              Resolved: