Create simple dataframe from array

pr = [['Alice'], ['Bob']]
pdf = sc.parallelize(pr).toDF(['name'])
pdf.show()