Skip to content

Conversation

@joelsonoda
Copy link
Contributor

…hen passing extra names (#47566)

  • Expect the provided number of columns when the names property is set

  • Add tests to demonstrate handling of files with a single row with fewer columns.

Joel Sonoda added 2 commits October 19, 2022 06:42
…hen passing extra names (pandas-dev#47566)

* Expect the provided number of columns when the names property is set

* Add tests to demonstrate handling of files with a single row with
  fewer columns.
@mroeschke mroeschke added the IO CSV read_csv, to_csv label Oct 19, 2022
@phofl phofl added this to the 2.0 milestone Oct 19, 2022
@phofl phofl merged commit 91de4cc into pandas-dev:main Oct 19, 2022
@phofl
Copy link
Member

phofl commented Oct 19, 2022

thx @joelsonoda

@phofl
Copy link
Member

phofl commented Oct 19, 2022

As a side note: At some point this needs fixing in the actual parsing code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

IO CSV read_csv, to_csv

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: CSV C engine raises an error on single line CSV with no header when passing extra names

3 participants