Skip to content

Documentation error in CsvReader for header parameter #67

@rjsbhatia

Description

@rjsbhatia

In the documentation for CsvReader it says we can pass the header parameter. The example shows a possible value of None.

Example:
"csv_reader": {
"class": "CsvReader",
"filename": "data/mydata.csv",
"kwargs": {
"header": None,
"sep": ":"
}
} \

Json(and yaml) have issues with None.
If you pass Null instead of None the reader works.

https://github.com/WW-Digital/ww-primrose/blob/b8b0eb9befc78d42c48cd0573a1dc6d1dfaef71d/primrose/readers/csv_reader.py#L42


As an aside, I was trying to write this data to BigQuery and if there is no header the Bqwriter fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions