toCSV

fun AnyFrame.toCSV(appendable: Appendable, header: Boolean = true, separator: String = ",")

Converts the data frame to rows of comma separated file output with specified separator. The default separator is a comma. Elements that are strings are enclosed in double quotes to permit the separator to appear in the element. If the header is true, then the column names of the dataframe are included as the first row before any data rows are appended.


fun AnyRow.toCSV(separator: String = ","): String

Converts the DataRow to a string separated by the provided separator. The default is common separated. Elements in the row that are strings are enclosed in double quotes to permit the separator to appear in the string.