system.dataset.dataSetToCSV

system.dataset.dataSetToCSV returns a dataset as a sequence of comma separated variables, with each line of the dataset separated by a carriage return. This means that if you pass it a vertical column of data (say from a list), it outputs a series of strings separated by carriage returns rather than commas.

Would it be possible if there is only one column of data in the dataset to return that column using commas to separate the strings?

I think it is important that dataSetToCSV behave in a consistent manner.

Don’t forget how easy it is to make your own CSV:

[code]data = … get your tall table
data = system.dataset.toPyDataSet(data)

csv = “,”.join([’"%s"’%row[0] for row in data])

print csv[/code]

Thanks Carl. That answers my question in this post.