from pyspark.mllib.linalg import Vectors
df = sc.parallelize([('assert', Vectors.dense([1, 2, 3]))]).toDF(['word',
    'vector'])

def extract(row):
    return (row.word,) + tuple(float(x) for x in row.vector.values)
How to split dense Vector into columns - using pyspark