I want to export a dataframe within DataBricks to CSV. I am using the following code:
data= data_raw.copy()
df = spark.createDataFrame(data)
display(df)
Then I am using the right click option to export the dataframe.
The data file contains ,
seperated values.
I want to change the delimiter from ,
to ;
but I don't know how.
Do you have any ideas?
data_raw contains two columns: 1 Number 2 Text
Example Data
Number | Text |
---|---|
1 | This is a text, containing letters. It can contain multiple , |
2 | This a new text,it contains several letters |