Expand description
Format specs of kind = "delimited": the reading options for a family of CSV-like
files, with header rows that have roles (names, units), a metadata line, and a few
derived columns.
A spec is parsed in crate::formats, beside the binary specs, and matched by the
same match. Reading it is the CSV reader’s: Delimited::apply sets the
dialect options a matched file is opened with, and Delimited::derive adds the
derived columns to the frame. The only lines read apart from the scan are the
header lines and the metadata line (Delimited::facts).
Re-exports§
pub use crate::column_types::Derived;pub use crate::column_types::DerivedKind;
Structs§
- Delimited
- A delimited spec’s reading options. Each one left out keeps what the command line or the config says.
- Delimited
Read - What a read through a delimited spec found, as the open carries it to the dataset.
- Head
Facts - What a file’s header lines say besides its column names.
- Header
Rows - What the lines before the data hold, by role.
- Metadata
- The
key="value"line at the top of a file.
Constants§
- MAX_
HEAD_ LINE - The most lines
Delimited::factsreads: the header lines and the metadata line sit at the top of a file.
Functions§
- check
- What
datui formats checkprints for a delimited spec and, givenfile, the file’s metadata, units and firstrowsrows as read withbase, the command line’s options, whose typed dialect flags win over the spec’s. - parse_
metadata name, key="value", key=value: the items separated by commas outside quotes. A first item with no=is the title. A line with anything else, or with no pairs, is kept raw only.- read_
facts readwith the units and metadata from the header lines of the first ofpaths, read inoptions’ dialect.