I have a StringType() column and an ArrayType(StringType()) column in a pyspark dataframe. I want to concat the StringType() column with every element of the ArrayType(StringType()) column.
Example:
+-----+---------------------+------------------------------+
|col1 |col2 |col3 |
+-----+---------------------+------------------------------+
|'AQQ'|['ABC', 'DEF'] |['AQQABC', 'AQQDEF'] |
|'APP'|['ABC', 'DEF', 'GHI']|['APPABC', 'APPDEF', 'APPGHI']|
+-----+---------------------+------------------------------+
Thanks :)