• 1000 . Хотя ошибки нет, но фрейм данных не копируется в csv. Ниже приведен общий c код
path = “ “ #CSV File Location
header = “This is the header of the file"
With open(path,”a”) as f:
f.write(header+”\n”)
df.write.csv(path=path,format=“csv”,mode=“append”)
f.close
В файле отражается только заголовок, а не фрейм данных