In Scala I can simply duplicate a column in a DF like this:
val df = spark.read.format("csv") .option("sep", ",") .optio