Skip to content

Commit 0283665

Browse files
ScrapCodesmateiz
authored andcommitted
SPARK-1109 wrong API docs for pyspark map function
Author: Prashant Sharma <[email protected]> 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
1 parent 1865dd6 commit 0283665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/rdd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def getCheckpointFile(self):
163163

164164
def map(self, f, preservesPartitioning=False):
165165
"""
166-
Return a new RDD containing the distinct elements in this RDD.
166+
Return a new RDD by applying a function to each element of this RDD.
167167
"""
168168
def func(split, iterator): return imap(f, iterator)
169169
return PipelinedRDD(self, func, preservesPartitioning)

0 commit comments

Comments
 (0)