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.
This commit is contained in:
Miles Yucht 2016-02-16 13:01:21 +00:00 committed by Sean Owen
parent fee739f07b
commit 827ed1c067

View file

@ -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})