Creating new column
data = spark.createDataFrame([(1,2,5), (3,4,9)], [\'Col_1\', \'Col_2\',\'Col_3\']) data.show() +-----+-----+-----+ |Col_1|Col_2|Col_3| +-