Skip to content

Commit 1a55b58

Browse files
committed
SPARK-1109 wrong API docs for pyspark map function
1 parent 181ec50 commit 1a55b58

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)