From 1e73745d5f97161a4084f2a838f1a1144b221aad Mon Sep 17 00:00:00 2001 From: Miles Yucht Date: Tue, 16 Feb 2016 00:39:29 -0500 Subject: [PATCH] Correct SparseVector.parse documentation --- python/pyspark/mllib/linalg/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pyspark/mllib/linalg/__init__.py b/python/pyspark/mllib/linalg/__init__.py index 131b855bf99c..abf00a473794 100644 --- a/python/pyspark/mllib/linalg/__init__.py +++ b/python/pyspark/mllib/linalg/__init__.py @@ -558,7 +558,7 @@ def __reduce__(self): @staticmethod def parse(s): """ - Parse string representation back into the DenseVector. + Parse string representation back into the SparseVector. >>> SparseVector.parse(' (4, [0,1 ],[ 4.0,5.0] )') SparseVector(4, {0: 4.0, 1: 5.0})