Hi how’s it going?
If I have a Spark Dataframe like this…
val df = spark.read
.format("csv")
.option("sep",",")
.option("inferSchema","true")
.option("header","true")
.load(dbPath+"data"+".csv")
and I want to repeat the dataframe rows so that each row has 7 copies of the row in the dataframe, how would I do that?
here’s an example of the before and after I’m looking for, except done in Python.
Thank you!