HyukjinKwon commented on a change in pull request #30498:
URL: https://github.com/apache/spark/pull/30498#discussion_r530286215



##########
File path: python/pyspark/ml/functions.py
##########
@@ -69,6 +69,31 @@ def vector_to_array(col, dtype="float64"):
         
sc._jvm.org.apache.spark.ml.functions.vector_to_array(_to_java_column(col), 
dtype))
 
 
+def array_to_vector(col):
+    """
+    Converts a column of array<NumericType> type into a column of MLlib dense 
vectors
+

Review comment:
       @WeichenXu123, after SPARK-32085, now PySpark uses [NumPy documentation 
style](https://numpydoc.readthedocs.io/en/latest/format.html). 




----------------------------------------------------------------
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