Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Davies Liu committed Nov 12, 2014
1 parent 41fce54 commit 1715ee3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -760,8 +760,6 @@ private[spark] object PythonRDD extends Logging {

/**
* A helper to convert java.util.List[Double] into Array[Double]
* @param list
* @return
*/
def listToArrayDouble(list: JList[Double]): Array[Double] = {
val r = new Array[Double](list.size)
Expand Down
2 changes: 1 addition & 1 deletion python/pyspark/rdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def randomSplit(self, weights, seed=None):
:param weights: weights for splits, will be normalized if they don't sum to 1
:param seed: random seed
:return: split RDDs in an list
:return: split RDDs in a list
>>> rdd = sc.parallelize(range(10), 1)
>>> rdd1, rdd2, rdd3 = rdd.randomSplit([0.4, 0.6, 1.0], 11)
Expand Down

0 comments on commit 1715ee3

Please sign in to comment.