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/07/01 02:42:00 UTC
[jira] [Assigned] (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 reassigned SPARK-28170:
------------------------------------
Assignee: Marco Gaido
> 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
>
> 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