Skip to content

TST: Raise ValueError and suggestion to use header=None if header=-1 is pa… #27878

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

Merged
merged 5 commits into from
Aug 15, 2019

Conversation

MarcoGorelli
Copy link
Member

@MarcoGorelli MarcoGorelli commented Aug 12, 2019

…ssed

@MarcoGorelli MarcoGorelli changed the title Raise ValueError and suggestion to use header=None if header=-1 is pa… WIP: Raise ValueError and suggestion to use header=None if header=-1 is pa… Aug 13, 2019
@MarcoGorelli MarcoGorelli changed the title WIP: Raise ValueError and suggestion to use header=None if header=-1 is pa… TST: Raise ValueError and suggestion to use header=None if header=-1 is pa… Aug 14, 2019
@TomAugspurger TomAugspurger added this to the 0.25.1 milestone Aug 14, 2019
@jreback jreback requested a review from gfyoung August 15, 2019 13:36
@jreback jreback added the IO CSV read_csv, to_csv label Aug 15, 2019
Copy link
Member

@gfyoung gfyoung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MarcoGorelli : This PR is off to a good start! If you can address @jreback's comment and expand the test, I think this will address the issue well.

…like object of non-negative integers), or None
@TomAugspurger TomAugspurger merged commit a818281 into pandas-dev:master Aug 15, 2019
@TomAugspurger
Copy link
Contributor

Thanks @MarcoGorelli!

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Aug 15, 2019
@MarcoGorelli MarcoGorelli deleted the negative-header branch August 15, 2019 21:14
@MarcoGorelli
Copy link
Member Author

Happy to help, and massive thanks for your assistance/guidance!

gfyoung pushed a commit that referenced this pull request Aug 16, 2019
quintusdias pushed a commit to quintusdias/pandas_dev that referenced this pull request Aug 16, 2019
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.

Give more precise warning when passing header=-1 in pandas.read_csv, or don't throw error
4 participants