You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2015/05/06 08:53:09 UTC

[jira] [Updated] (SPARK-2315) drop, dropRight and dropWhile which take RDD input and return RDD

     [ https://issues.apache.org/jira/browse/SPARK-2315?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen updated SPARK-2315:
-----------------------------
    Target Version/s:   (was: 1.2.0)

> drop, dropRight and dropWhile which take RDD input and return RDD
> -----------------------------------------------------------------
>
>                 Key: SPARK-2315
>                 URL: https://issues.apache.org/jira/browse/SPARK-2315
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Spark Core
>            Reporter: Erik Erlandson
>            Assignee: Erik Erlandson
>              Labels: features
>
> 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)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org