-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: Improve error message for header argument containing non int types. GH16338 #16351
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
ENH: Improve error message for header argument containing non int types. GH16338 #16351
Conversation
Lint failure here If you The other failure looked unrelated, so I've restarted that job. Once you've fixed the linting error, you can push another commit to this branch. |
Also need to test that you can hit this error message! |
Thanks @mjlove12 for picking this up. The lint error is |
Thanks @pierre-haessig. I'm planning to make the changes this week, |
e5fd262
to
888bdd0
Compare
Codecov Report
@@ Coverage Diff @@
## master #16351 +/- ##
==========================================
- Coverage 90.41% 90.36% -0.05%
==========================================
Files 161 161
Lines 50997 50918 -79
==========================================
- Hits 46107 46012 -95
- Misses 4890 4906 +16
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #16351 +/- ##
==========================================
- Coverage 90.42% 90.41% -0.02%
==========================================
Files 161 161
Lines 51027 51003 -24
==========================================
- Hits 46142 46113 -29
- Misses 4885 4890 +5
Continue to review full report at Codecov.
|
Okay, I hope I did this right.
Feedback appreciated if any of those steps are discouraged. Also, random question: Thanks for all the help! |
@mjlove12 : Your steps are perfectly fine. Don't worry about it too much. 😄 As for why we use
As a result, we need to test both, and we have test classes that implement their own |
888bdd0
to
7d8c174
Compare
@TomAugspurger not entirely sure I'm understanding the failure this time. I ran the command "git diff master --name-only -- '*.py' | grep 'pandas/' | xargs flake8" on the branch and didn't get any issues. Any help would be appreciated. |
@mjlove12 this test failure looks unrelated. I've restarted that worker. The other failure is a known issue we haven't been able to debug yet. |
You can also add a release note in |
…n int types. GH16338. Adds error "header must be integer or list of integers" when the header argument is a list, tuple or numpy array containing non-integers. Initially intended to read_csv, but applies to other functions with similar header arguments. GH16338 refers to a case in which the user mixes up the "names" and "header" arguments. Revising PR16351 based on feedback Revising PR16351 lint issues Adding release note in whatsnew v0.21.0 for PR16351
7d8c174
to
de005a0
Compare
@TomAugspurger sounds good. I added a whatsnew entry under bug fixes. |
The appveyor failure is unrelated, and already fixed on master. Thanks @mjlove12! |
…n int types. GH16338. (pandas-dev#16351) Adds error "header must be integer or list of integers" when the header argument is a list, tuple or numpy array containing non-integers. Initially intended to read_csv, but applies to other functions with similar header arguments. GH16338 refers to a case in which the user mixes up the "names" and "header" arguments. Revising PR16351 based on feedback Revising PR16351 lint issues Adding release note in whatsnew v0.21.0 for PR16351
Adds error "header must be integer or list of integers" when the header argument is a list, tuple or numpy array containing non-integers. Initially intended to read_csv, but applies to other functions with similar header arguments. GH16338 refers to a case in which the user mixes up the "names" and "header" arguments.
git diff upstream/master --name-only -- '*.py' | flake8 --diff