PolyMathOrg / DataFrame

DataFrame in Pharo - tabular data structures for data analysis
MIT License
73 stars 27 forks source link

add more formatting options to DataFrameCsvWriter #271

Closed tomooda closed 1 year ago

tomooda commented 1 year ago

This PR is to provide more options to write CSV files in desired formats.

The inst var fieldWriter holds a symbol to be passed to NeoCSV writer to change the presentation of the values. You can set it by useRawFieldWriter, useQuotedFieldWriter, useOptionalQuotedFieldWriter and useObjectFieldWriter. By default, it uses the quoted field writer (same as the original implementation of the current DataFrameCsvWriter).

The inst var rowNameEnabled holds a boolean to decide whether the writer outputs row names into the CSV file. You can set it by enableRowName and disableRowName. By default, it is disabled (same as the original implementation of the current DataFrameCsvWriter).