You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/06/27 03:51:00 UTC
[jira] [Updated] (SPARK-28170) DenseVector .toArray() and .values
documentation do not specify they are aliases
[ https://issues.apache.org/jira/browse/SPARK-28170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon updated SPARK-28170:
---------------------------------
Component/s: PySpark
> 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
> Priority: Minor
>
> 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