Skip to main content

ExportDataCsvKwargs

Keyword arguments for dataset's export_data_csv method.

Index

Properties

keyword-onlyoptionaldelimiter

delimiter: str

A one-character string used to separate fields. Defaults to ','.

keyword-onlyoptionaldialect

dialect: str

Specifies a dialect to be used in CSV parsing and writing.

keyword-onlyoptionaldoublequote

doublequote: bool

Controls how instances of quotechar inside a field should be quoted. When True, the character is doubled; when False, the escapechar is used as a prefix. Defaults to True.

keyword-onlyoptionalescapechar

escapechar: str

A one-character string used to escape the delimiter if quoting is set to QUOTE_NONE and the quotechar if doublequote is False. Defaults to None, disabling escaping.

keyword-onlyoptionallineterminator

lineterminator: str

The string used to terminate lines produced by the writer. Defaults to '\r\n'.

keyword-onlyoptionalquotechar

quotechar: str

A one-character string used to quote fields containing special characters, like the delimiter or quotechar, or fields containing new-line characters. Defaults to '"'.

keyword-onlyoptionalquoting

quoting: int

Controls when quotes should be generated by the writer and recognized by the reader. Can take any of the QUOTE_* constants, with a default of QUOTE_MINIMAL.

keyword-onlyoptionalskipinitialspace

skipinitialspace: bool

When True, spaces immediately following the delimiter are ignored. Defaults to False.

keyword-onlyoptionalstrict

strict: bool

When True, raises an exception on bad CSV input. Defaults to False.