Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
SPARK-1109 wrong API docs for pyspark map function
  • Loading branch information
ScrapCodes committed Mar 4, 2014
commit 1a55b5816505dea85d320e3e182b82ad83869ecd
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