CsvWriter

class CsvWriter(df: DataFrame, header: Boolean, delimiter: Char, lineSeparator: String, quote: Char, charset: Charset, nullEncoding: String, skipEmptyLines: Boolean)

Writing a DataFrame to CSV format.

Value Params
charset

Charset encoding.

delimiter

Delimiter character between columns.

header

If true, adds a header line with column names.

lineSeparator

Line separator.

nullEncoding

Representation of a undefined (missing) value. The default is an empty string.

quote

Quote character.

skipEmptyLines

If false, rows are written even if all values are undefined (null).

Since

0.1.0

Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def write(path: String): DataFrame

Writes the DataFrame to a file.

Writes the DataFrame to a file.

Value Params
path

Path to file.

Returns

The unaltered DataFrame for chaining operations.

Since

0.1.0

def write(writer: Writer): DataFrame

Writes the DataFrame to a Writer.

Writes the DataFrame to a Writer.

Value Params
writer

Writer instance.

Returns

The unaltered DataFrame for chaining operations.

Since

0.1.0