diff options
author | Miles Yucht <miles@databricks.com> | 2016-02-16 13:01:21 +0000 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-02-16 13:01:21 +0000 |
commit | 827ed1c06785692d14857bd41f1fd94a0853874a (patch) | |
tree | 302f3c8555f4184682dda809d2d88bd77fbf9632 | |
parent | fee739f07b3bc37dd65682e93e60e0add848f583 (diff) | |
download | spark-827ed1c06785692d14857bd41f1fd94a0853874a.tar.gz spark-827ed1c06785692d14857bd41f1fd94a0853874a.tar.bz2 spark-827ed1c06785692d14857bd41f1fd94a0853874a.zip |
Correct SparseVector.parse documentation
There's a small typo in the SparseVector.parse docstring (which says that it returns a DenseVector rather than a SparseVector), which seems to be incorrect.
Author: Miles Yucht <miles@databricks.com>
Closes #11213 from mgyucht/fix-sparsevector-docs.
-rw-r--r-- | python/pyspark/mllib/linalg/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/pyspark/mllib/linalg/__init__.py b/python/pyspark/mllib/linalg/__init__.py index 131b855bf9..abf00a4737 100644 --- a/python/pyspark/mllib/linalg/__init__.py +++ b/python/pyspark/mllib/linalg/__init__.py @@ -558,7 +558,7 @@ class SparseVector(Vector): @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}) |