pyarrow.dataset.CsvFileFormat#
- class pyarrow.dataset.CsvFileFormat(ParseOptions parse_options=None, default_fragment_scan_options=None, ConvertOptions convert_options=None, ReadOptions read_options=None)#
Bases:
pyarrow._dataset.FileFormatFileFormat for CSV files.
- Parameters
- parse_options
pyarrow.csv.ParseOptions Options regarding CSV parsing.
- convert_options
pyarrow.csv.ConvertOptions Options regarding value conversion.
- read_options
pyarrow.csv.ReadOptions General read options.
- default_fragment_scan_options
CsvFragmentScanOptions Default options for fragments scan.
- parse_options
- __init__(*args, **kwargs)#
Methods
__init__(*args, **kwargs)equals(self, CsvFileFormat other)inspect(self, file[, filesystem])Infer the schema of a file.
make_fragment(self, file[, filesystem])Make a FileFragment from a given file.
make_write_options(self, **kwargs)Attributes
- default_extname#
- default_fragment_scan_options#
- equals(self, CsvFileFormat other)#
- inspect(self, file, filesystem=None)#
Infer the schema of a file.
- make_fragment(self, file, filesystem=None, Expression partition_expression=None)#
Make a FileFragment from a given file.
- Parameters
- filefile-like object, path-like or
str The file or file path to make a fragment from.
- filesystem
Filesystem, optional If filesystem is given, file must be a string and specifies the path of the file to read from the filesystem.
- partition_expression
Expression The filter expression.
- filefile-like object, path-like or
- make_write_options(self, **kwargs)#
- parse_options#