Message Boards Message Boards

1
|
268 Views
|
0 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Export dataset to csv without Quotation marks to headers

Posted 4 months ago

I need to export a csv file of a dataset that I created in Wolfram.

What I have now is Exporting the dataset to a csv file:

rawData = Table[{i, RandomInteger[{-10, 10}]}, {i, 1, 5}]
dataset = Dataset[MapApply[<|"time" -> #1, "channel1" -> #2|> &, rawData]]
Export["data.csv", dataset]

Opening the csv file in Notepad or any other text editor, the first line reads

"time","channel1"

while I need it to be

time,channel1

This is a small thing to change, but I later plot this dataset with LaTeX's pgfplots package, that reads headers without quotations. Manually removing the "s in Notepad after exporting is a but cumbersome.

Do you have any idea for how to export my dataset to csv without Wolfram's built in way of specifying strings with quotation marks?

POSTED BY: Ehud Behar
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract