I have the following data and would like to get the result with a text prefix:
Input dataframe:
sk id
2306220722 117738
Current code:
df.withColumn("Remarks", concat_ws("MCA", col("ID")))
Expected output:
sk id Remarks
2306220722 117738 MCA 117738
I would like to prefix the id column with "MCA" and add the resulting string to the Remarks column.