Is there a way to roll a list of columns up into a...
# general
k
Is there a way to roll a list of columns up into a single column like this pyspark function?
Copy code
df = df.withColumn("info", F.to_json(struct([df[x] for x in df.columns])))
Oh okay I did this in the end daft.to_struct(*df.columns)