I am creating a csv file with write method in Pyspark, our requirement is to add EOF at end of file.. can anyone please suggest what can be done ?
Df.write.csv(“xyz.csv”)
But I want to add one string “EOF” at the end of this file
I tried creating a df and union it with the already created df but it add up null values n extra column