You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sivam Pasupathipillai (JIRA)" <ji...@apache.org> on 2019/06/26 10:39:00 UTC

[jira] [Created] (SPARK-28170) DenseVector .toArray() and .values documentation do not specify they are aliases

Sivam Pasupathipillai created SPARK-28170:
---------------------------------------------

             Summary: DenseVector .toArray() and .values documentation do not specify they are aliases
                 Key: SPARK-28170
                 URL: https://issues.apache.org/jira/browse/SPARK-28170
             Project: Spark
          Issue Type: Improvement
          Components: ML, MLlib
    Affects Versions: 2.4.3
            Reporter: Sivam Pasupathipillai


The documentation of the *toArray()* method and the *values* property in pyspark.ml.linalg.DenseVector is confusing.

*toArray():* Returns an numpy.ndarray

*values**:* Returns a list of values

However, they are actually aliases and they both return a numpy.ndarray.

FIX: either change the documentation or changeĀ  the *values* property to return a Python list.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org