Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
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
- is related to
-
SPARK-3998 Add offset limit to SqlParser.scala
- Closed
- relates to
-
SPARK-9999 Dataset API on top of Catalyst/DataFrame
- Resolved
- links to