There may be cases where we need to initialize a Dataframe without specifying a schema.
Let's see how to do that
Let's see how to do that
empty_DF = sqlContext.createDataFrame(sc.emptyRDD(),StructType([]))
StructType([]) This creates an empty schema for our dataframe.