I have a row that is obtained in the following way:
val row_name = df.collect()(i)
how can I convert this row to a type vector so that it can be passed to fromML() as follows ?
val vector_name=org.apache.spark.mllib.linalg.Vectors.fromML(row_name)
thanks in advance!
question from:https://stackoverflow.com/questions/65882176/row-to-vector-in-scala-spark