to CSV
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.