Skip to content

API/DOC: Specification for names parameter in read_csv #16469

Closed
@gfyoung

Description

@gfyoung

On master (04356a), the documentation is unclear as to what a valid names parameter is for read_csv.

  • Does it need to have the same length as the number of columns in the file? OR
  • Does it need to have the same length as usecols if specified?

I find evidence in the test cases to support both (C engine allows both for example, but the Python engine disallows the former). This point should also be clarified in the documentation.

xref #14671.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions