-
-
Notifications
You must be signed in to change notification settings - Fork 296
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
Add details in errors reporting to ease data debugging. #193
Add details in errors reporting to ease data debugging. #193
Conversation
Report the name of the columns whose type is missing.
002faff
to
4534cdd
Compare
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.
Thanks for the PR! see inline comments for CI breakages.
pandera/schemas.py
Outdated
return series_or_index.astype(self.dtype) | ||
except TypeError as exn: | ||
(msg,) = exn.args | ||
exn.args = (f"{msg}, while processing {self.name or 'None'}",) |
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.
need to use %s
or .format
string formatting until pandera drops support for py3.5 #142
pandera/schemas.py
Outdated
missing_pandas_type = [name | ||
for name, col in self.columns.items() | ||
if col.pandas_dtype is None] |
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.
pylint error: https://travis-ci.org/github/pandera-dev/pandera/jobs/670692444#L763-L769
needs indentation like:
missing_pandas_type = [
name for name, col in self.columns.items()
if col.pandas_dtype is None
]
Codecov Report
@@ Coverage Diff @@
## master #193 +/- ##
==========================================
+ Coverage 96.21% 96.39% +0.17%
==========================================
Files 9 15 +6
Lines 714 1277 +563
==========================================
+ Hits 687 1231 +544
- Misses 27 46 +19
Continue to review full report at Codecov.
|
No description provided.