temp_rdd = sc.parallelize([(0.0, SparseVector(4, {(1): 1.0, (3): 5.5})), (
    1.0, SparseVector(4, {(0): -1.0, (2): 0.5}))])
How do I convert an RDD with a SparseVector Column to a DataFrame with a column as Vector