concat 2 columns with select in spark code example
Example: pyspark concat columns
from pyspark.sql.functions import concat, col, lit
df.select(concat(col("k"), lit(" "), col("v")))
from pyspark.sql.functions import concat, col, lit
df.select(concat(col("k"), lit(" "), col("v")))