Skip to content

Commit

Permalink
SPARK-1109 wrong API docs for pyspark map function
Browse files Browse the repository at this point in the history
Author: Prashant Sharma <prashant.s@imaginea.com>

Closes apache#73 from ScrapCodes/SPARK-1109/wrong-API-docs and squashes the following commits:

1a55b58 [Prashant Sharma] SPARK-1109 wrong API docs for pyspark map function
  • Loading branch information
ScrapCodes authored and mateiz committed Mar 4, 2014
1 parent 1865dd6 commit 0283665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/rdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def getCheckpointFile(self):

def map(self, f, preservesPartitioning=False):
"""
Return a new RDD containing the distinct elements in this RDD.
Return a new RDD by applying a function to each element of this RDD.
"""
def func(split, iterator): return imap(f, iterator)
return PipelinedRDD(self, func, preservesPartitioning)
Expand Down

0 comments on commit 0283665

Please sign in to comment.