[ 
https://issues.apache.org/jira/browse/SPARK-28170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hyukjin Kwon resolved SPARK-28170.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4.4
                   3.0.0

Issue resolved by pull request 25011
[https://github.com/apache/spark/pull/25011]

> 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, PySpark
>    Affects Versions: 2.4.3
>            Reporter: Sivam Pasupathipillai
>            Assignee: Marco Gaido
>            Priority: Trivial
>             Fix For: 3.0.0, 2.4.4
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to