CSV#
- class onetl.file.format.csv.CSV(*, sep: str = ',', encoding: str = 'utf-8', quote: str = '"', escape: str = '\\', header: bool = False, lineSep: str = '\n', **kwargs)#
-
Based on Spark CSV file format.
Supports reading/writing files with
.csv
extension with content like:"some","value" "another","value"
Note
You can pass any option to the constructor, even if it is not mentioned in this documentation. Option names should be in
camelCase
!The set of supported options depends on Spark version. See link above.
Examples
Describe options how to read from/write to CSV file with specific options:
csv = CSV(sep=",", encoding="utf-8", inferSchema=True, compression="gzip")
- __init__(**kwargs)#