-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: show failing string on numeric parse #13773
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
Conversation
I think its straightforward to also provide a row/line number here, e.g. |
if not coerce_numeric: | ||
raise | ||
raise type(e)(e.message + ' in row {}'.format(i)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
acutally maybe row is not the word, these are 1-d arrays, so maybe entry? value at index i?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to do a bit purist, but 'array index' sounds also a bit strange when you pass a Series and not an array. And given that just 'at index' can be confused with the actual index labels, maybe just 'at position ..' ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I do think that's better.
Current coverage is 85.23% (diff: 100%)
|
@jorisvandenbossche - I think this one is good now. |
Thanks! |
git diff upstream/master | flake8 --diff