Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
pyspark concat columns
Kussai Sujaa
Programming language:
Whatever
2021-09-05 06:38:25
0
Q:
pyspark concat columns
user208817
Code:
Whatever
2021-09-05 00:39:57
from pyspark.sql.functions import concat, col, lit df.select(concat(col("k"), lit(" "), col("v")))
0
Tags
con
columns
Related
Pyspark Aggregation on multiple columns
how to select two columns in a dataframe
New to Communities?
Join the community