This is an old revision of the document!
Create simple dataframe from array
pr = [['Alice'], ['Bob']] pdf = sc.parallelize(pr).toDF(['name']) pdf.show()
This is an old revision of the document!
pr = [['Alice'], ['Bob']] pdf = sc.parallelize(pr).toDF(['name']) pdf.show()