# Vector¶

class pyspark.mllib.linalg.Vector[source]

Methods

 Convert this vector to the new mllib-local representation. Convert the vector into an numpy.ndarray

Methods Documentation

asML()pyspark.ml.linalg.Vector[source]

Convert this vector to the new mllib-local representation. This does NOT copy the data; it copies references.

Returns
pyspark.ml.linalg.Vector
toArray() → numpy.ndarray[source]

Convert the vector into an numpy.ndarray

Returns
numpy.ndarray