yadg.extractors.custom.basic package
Submodules
- yadg.extractors.custom.basic.csv.extract(*, fn, encoding, locale, timezone, parameters, **kwargs)
A basic csv parser.
This parser processes a csv file. The header of the csv file consists of one or two lines, with the column headers in the first line and the units in the second. The parser also attempts to parse column names to produce a timestamp, and save all other columns as floats or strings.
- Parameters:
fn (
str
) – File to processencoding (
str
) – Encoding offn
, by default “utf-8”.timezone (
str
) – A string description of the timezone. Default is “localtime”.parameters (
BaseModel
) – Parameters forBasicCSV
.
- Returns:
No metadata is returned by the
basiccsv
parser. The full date might not be returned, eg. when only time is specified in columns.- Return type: