Skip to content

csv parser fails with single line, no separator #1553

Closed
@kieranholland

Description

@kieranholland

Due to _infer_columns() consuming 1 line when names provided:

read_csv(StringIO('1,2'), names=['a', 'b'], sep=None))
Traceback (most recent call last):
    ...
StopIteration 

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