Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pyspark concat columns

from pyspark.sql.functions import concat, col, lit

df.select(concat(col("k"), lit(" "), col("v")))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pyspark #concat #columns
ADD COMMENT
Topic
Name
9+3 =