Skip to content

Commit 1715ee3

Browse files
author
Davies Liu
committed
address comments
1 parent 41fce54 commit 1715ee3

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,8 +760,6 @@ private[spark] object PythonRDD extends Logging {
760760

761761
/**
762762
* A helper to convert java.util.List[Double] into Array[Double]
763-
* @param list
764-
* @return
765763
*/
766764
def listToArrayDouble(list: JList[Double]): Array[Double] = {
767765
val r = new Array[Double](list.size)

python/pyspark/rdd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def randomSplit(self, weights, seed=None):
322322
323323
:param weights: weights for splits, will be normalized if they don't sum to 1
324324
:param seed: random seed
325-
:return: split RDDs in an list
325+
:return: split RDDs in a list
326326
327327
>>> rdd = sc.parallelize(range(10), 1)
328328
>>> rdd1, rdd2, rdd3 = rdd.randomSplit([0.4, 0.6, 1.0], 11)

0 commit comments

Comments
 (0)