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.
Nice blog and articles. I am realy glad to visit your blog. Presently I am discovered which I really need.
ReplyDelete360DigiTMG
This is a great motivational article. In fact, I am happy with your good work. They publish very supportive data, really. Continue. Continue blogging. Hope you explore your next post
ReplyDeletewhat is hrdf