You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Mina Aslani <as...@gmail.com> on 2018/02/20 20:12:48 UTC
Write a DataFrame with Vector values into text/csv file
Hi,
I would like to write a dataframe with vactor values into a text/csv file.
Using below line, I can write it as parquet, however I cannot open it in
excel/as text.
df.coalesce(1).write.option("header","true").mode("overwrite").save("stage-s3logs-model")
Wondering how to save the result of a MLib transformation function(e.g.
oneHotEncoder) which generates vectors into a file.
Best regards,
Mina