Skip to content

Conversation

chris-b1
Copy link
Contributor

closes #6113

Passing header=True|False to read_csv (and brethren), read_excel, and read_html will now raise a TypeError, rather than being coerced to an int.

I had thought about converting False to None but thought that could break someone's code in a very subtle way if they were somehow depending on the old behavior. But happy to change that if it seems better.

If you want to push this in for 0.17 I can add a doc-note or this could easily wait.

Copy link
Contributor

Choose a reason for hiding this comment

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

test for True as well (in read_csv too)

@jreback jreback added API Design IO CSV read_csv, to_csv labels Sep 24, 2015
@jreback
Copy link
Contributor

jreback commented Sep 24, 2015

@chris-b1 if you add a release note (put in the API section) can add for 0.17.0

@jreback jreback added this to the 0.17.0 milestone Sep 24, 2015
@chris-b1
Copy link
Contributor Author

@jreback added a doc note and testing for the True case.

Copy link
Contributor

Choose a reason for hiding this comment

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

add the issue number here

@jreback
Copy link
Contributor

jreback commented Sep 24, 2015

tiny doc-change. ping when you push

@chris-b1
Copy link
Contributor Author

@jreback thanks, made that change

jreback added a commit that referenced this pull request Sep 24, 2015
API: raise on header=bool in parsers
@jreback jreback merged commit 38ee8c7 into pandas-dev:master Sep 24, 2015
@jreback
Copy link
Contributor

jreback commented Sep 24, 2015

thank you sir!

@jorisvandenbossche
Copy link
Member

Nice!

@chris-b1 chris-b1 deleted the header-bool-readers branch September 26, 2015 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Design IO CSV read_csv, to_csv
Projects
None yet
Development

Successfully merging this pull request may close these issues.

read_table, header flag. false interpreted as 0.
3 participants