insert a column into a dataframe pyspark code example
Example: insert data into dataframe in pyspark
df = sqlContext.createDataFrame([("val1","val2","val1")], ["colName1", "colName2", "colName3"])
df = sqlContext.createDataFrame([("val1","val2","val1")], ["colName1", "colName2", "colName3"])