Skip to main content

Crate dataprof_csv

Crate dataprof_csv 

Source

Structs§

CsvParserConfig
Configuration for CSV parsing and analysis.
EncodingDiagnostic
What diagnose_non_utf8 found about a file that failed UTF-8 decoding.
MemoryMappedCsvReader
Memory-mapped CSV reader for efficient processing of large files.
QuoteOutcome
Shared answer from a QuoteTrackingReader, readable after the reader has been moved into a parser.
QuoteTrackingReader
Pass-through reader that records whether its source ended inside a quoted field. See the module docs.

Functions§

analyze_csv_file
Analyze a CSV file, returning a full ProfileReport.
analyze_csv_from_reader
Analyze CSV data from any Read source using streaming statistics.
detect_delimiter
Detect the most likely CSV delimiter by sampling 4 KB of data, or more when the header record is longer (see detect_delimiter_with_head).
detect_delimiter_detailed
detect_delimiter, returning what detection saw with the delimiter it chose (see detect_delimiter_detailed_with_head).
detect_delimiter_detailed_with_head
detect_delimiter_with_head, returning what detection saw with the delimiter it chose: the header’s field count and a candidate that read the sampled records as well, so a report can say when the choice was not clear (#1100).
detect_delimiter_from_path
Detect the most likely CSV delimiter from a file path.
detect_delimiter_with_head
Detect the delimiter of a source and return it with the bytes read to detect it, so a caller that cannot rewind the source can chain them back in front of the rest.
detection_byte
The delimiter byte of a detection. Detection only ever chooses one of the ASCII candidates, so the recorded character is that byte.
diagnose_non_utf8
Inspect a file that failed UTF-8 decoding and guess its encoding.
unterminated_quote_error
The error strict mode (flexible = false) raises for a source that ended inside a quoted field.