Skip to content
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

Merged
merged 5 commits into from
Jun 20, 2020

Conversation

c3-Anthony-Truchet
Copy link
Contributor

No description provided.

Anthony Truchet added 2 commits April 3, 2020 19:56
Copy link
Collaborator

@cosmicBboy cosmicBboy left a 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.

return series_or_index.astype(self.dtype)
except TypeError as exn:
(msg,) = exn.args
exn.args = (f"{msg}, while processing {self.name or 'None'}",)
Copy link
Collaborator

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

Comment on lines 88 to 90
missing_pandas_type = [name
for name, col in self.columns.items()
if col.pandas_dtype is None]
Copy link
Collaborator

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
]

@cosmicBboy cosmicBboy marked this pull request as ready for review June 20, 2020 15:13
@codecov-commenter
Copy link

codecov-commenter commented Jun 20, 2020

Codecov Report

Merging #193 into master will increase coverage by 0.17%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
pandera/schemas.py 96.15% <100.00%> (-0.60%) ⬇️
pandera/dtypes.py 92.98% <0.00%> (-0.77%) ⬇️
pandera/errors.py 100.00% <0.00%> (ø)
pandera/error_formatters.py 100.00% <0.00%> (ø)
pandera/error_handlers.py 100.00% <0.00%> (ø)
pandera/version.py 100.00% <0.00%> (ø)
pandera/io.py 90.27% <0.00%> (ø)
pandera/schema_inference.py 100.00% <0.00%> (ø)
pandera/schema_statistics.py 100.00% <0.00%> (ø)
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a71f1d3...3d62cd5. Read the comment docs.

@cosmicBboy cosmicBboy merged commit 6947d08 into unionai-oss:master Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants