Answers for "pyspark concat two dataframes with different columns"

0

pyspark concat columns

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

df.select(concat(col("k"), lit(" "), col("v")))
Posted by: Guest on July-27-2020

Code answers related to "pyspark concat two dataframes with different columns"

Python Answers by Framework

Browse Popular Code Answers by Language