I have a list of dictionaries
say
list_ = [
{u'column1': u'test1', u'column2': u'None'},
{u'added_column1': u'test2', u'column2': u'None'}]
First row has two columns column1,column2
Second row has two columns added_column1, column2
I want to create a spark dataframe based on the data and should change as the list changes
Is there any long term solution?
Currently
spark.createDataFrame(list_).show()
This works but I get this warning.
UserWarning: inferring schema from dict is deprecated,please use pyspark.sql.Row instead warnings.warn("inferring schema from dict is deprecated,"