How to make a DataFrame from RDD in PySpark? | by Wei Xu | Medium
medium.com › @xuweimdm › how-to-make-a-dataframeJun 26, 2017 · Method 1 rdd = sc.parallelize ( [ (1,2,3), (4,5,6), (7,8,9)]) df = rdd.toDF ( ["a","b","c"]) All you need is that when you create RDD by parallelize function, you should wrap the elements who...