from pyspark.ml.feature import VectorAssembler
assembler = VectorAssembler(inputCols=['your', 'independent', 'variables'],
    outputCol='features')
transformed = assembler.transform(parsedData)
Create labeledPoints from Spark DataFrame in Python