jlafaye opened a new pull request #32255:
URL: https://github.com/apache/spark/pull/32255


   There are two types of dense vectors:
   * pyspark.ml.linalg.DenseVector
   * pyspark.mllib.linalg.DenseVector
   
   In spark-3.1.1, array_to_vector returns instances of 
pyspark.ml.linalg.DenseVector.
   The documentation is ambiguous & can lead to the false conclusion that 
instances of
   pyspark.mllib.linalg.DenseVector will be returned.
   Conversion from ml versions to mllib versions can easly be achieved with
   mlutils.convertVectorColumnsToML helper.
   
   
   ### What changes were proposed in this pull request?
   Make documentation more explicit
   
   ### Why are the changes needed?
   The documentation is a bit misleading and users can lose time investigating 
& realizing there are two DenseVector types.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   No test were run as only the documentation was changed
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to