Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: CSV C engine raises an error on single line CSV with no header w… #49182

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