Command
spark.createDataFrame()Explanation
PySpark DataFrames are distributed collections of data.
Examples
Create DataFrame from list
df = spark.createDataFrame([(1,"A"),(2,"B")], ["id","name"])spark.createDataFrame()PySpark DataFrames are distributed collections of data.
Create DataFrame from list
df = spark.createDataFrame([(1,"A"),(2,"B")], ["id","name"])