Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Spark Core
    • Labels:

      Description

      Last time I loaded in a text file, I found myself wanting to just skip the first element as it was a header. I wrote candidate methods drop, dropRight and dropWhile to satisfy this kind of need:

      val txt = sc.textFile("text_with_header.txt")
      val data = txt.drop(1)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                eje Erik Erlandson
                Reporter:
                eje Erik Erlandson
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: