Hi, I have a list of files here, stored under the variable named “files”.
List(data/file1.csv, data/file2.csv, data/file3.csv)
and I want to add it as a column to a 3 row dataframe. I tried using this code:
df.withColumn("col",col(files))
But I’m getting this error:
How would I fix this?